Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query a DataSet
Message
From
19/03/2006 18:24:41
 
 
To
17/03/2006 08:40:16
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
01104665
Message ID:
01105685
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform