Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie questions regarding Dataviews
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00970718
Message ID:
00970743
Views:
20
Hi, Simon,

Excellent question...you can create multiple views of the same datatable, by doing something like the following:


DataView dv1 = new DataView(MyDataSet.Tables["MyTableName"]);
dv1.Sort = " column1 ";
dv1.RowFilter = " column2 > 100 ";

DataView dv2 = new DataView(MyDataSet.Tables["MyTableName"]);
dv2.Sort = " column4 ";
dv2.RowFilter = " column6 > 50 ";


Keep in mind that there is no 'record pointer' in ADO.NET - though there is the binding manager position if you've bound a control (like a grid) to a particular dataview.

Let me know if that helps, or if you need more...

Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform