Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Set
Message
De
21/07/2004 14:14:48
 
 
À
21/07/2004 13:45:39
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00926656
Message ID:
00926670
Vues:
13
Hi, Paul,

You can take your dataset and apply a 'rowfilter', or use the select() function to retrieve a subset of data - the filter that you apply will go to a certain dataview...for instance..

DsCustomers.Tables[0].DefaultView.RowFilter = "balance > 1000";
dataGrid1.DataSource = DsCustomers.Tables[0].DefaultView;

Keep in mind that you can't do full-blown SQL statements against ADO.NET data. The rowfilter is basically limited to the table to which you're applying the filter - it's best to do all the major querying in the backend (SQL Server or whatever).

If you do a few searches on rowfilter and dataview over the last year here on this forum, you'll find several more detailed examples.

Hope this helps...
Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform