Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query a DataSet
Message
De
19/03/2006 18:24:41
 
 
À
17/03/2006 08:40:16
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
01104665
Message ID:
01105685
Vues:
25
Thanks for the help. This worked. However, I only used the second line. I already had a DataSet, then to get a distinct list of all the states in this DataSet, I used the line:

MyDataSet.Tables["Employees"].DefaultView.ToTable(true,"myStatefld");

The ToTable is pretty nice.


Hey, Jerry...

Glad that worked. Yeah, the ToTable is really sweet - it helps for instances where a table object is required (as opposed to a view object), and that first parameter helps with filtering distinct rows. I did a demo of that at a User Group a few months ago, and a few developers almost leaped for joy.

Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform