Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Merging fields in Dataviews
Message
De
07/02/2006 20:32:00
 
 
À
07/02/2006 16:43:41
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB.NET 1.1
Database:
MS SQL Server
Divers
Thread ID:
01094457
Message ID:
01094519
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Mike,

You could put a calculated field in your DataSet to handle this:
this.oData.Columns.Add("CustomerDisplay");
this.oData.Columns["CustomerDisplay"].Expression = "CustomerName + CustomerContact";
~~Bonnie



>Hello,
>
>In one instance in my application, I wanted to merge 2 fields in my combobox for display purposes, so I modified my SQL statement like so:
>
>
>SELECT Customer.*, [CustomerName]+' - '+[CustomerContact] AS CustomerDisplay FROM Customer
>
>
>I created a dataview from this table and bound my combobox to it.
>
>The question I have is did I have to do that in the SQL statement? Do Dataviews have the functionality to accomplish that?
>
>TIA,
>MAC
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform