Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie questions regarding Dataviews
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00970718
Message ID:
00970743
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform