Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting a DataSet
Message
From
23/10/2003 12:33:10
 
 
To
23/10/2003 12:24:52
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00841585
Message ID:
00841652
Views:
20
Michel,

>>If I understand correctly, I would need to select from that DataSet in a view such as loData.Select...<

Well, I wouldn't use DataTable.Select, but I suppose you could. Do something like this to use a View:
// create your view either this way:
DataView dv = loData.Tables["MyTable"].DefaultView;

// or this way:
DataView dv = new DataView(loData.Tables["MyTable"]);

//then set the Sort property
dv.Sort = "MySortField";
~~Bonnie


>>You can use Views (even the DefaultView) and set the Sort property.
>
>So, assuming I have this:
>
>
>Dim loData As DataSet
>loData = New DataSet
>
>' Get the upcoming user group meetings
>loData = loUT.GetUserGroupMeetingDataSet(DateAdd("d", lnDaysBack * -1, Date.Today), _
> DateAdd("d", lnDaysNext, Date.Today), lnUserGroupID)
>
>
>If I understand correctly, I would need to select from that DataSet in a view such as loData.Select...
>
>Is that correct?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform