Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataReader
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00717343
Message ID:
00717370
Vues:
16
DataReaders can only be used to bind in ASP.NET, not WinForms. They are a very efficient object to use for read-only access to data. The data is not persisted since only one row is read at a time. They are best used when you need to populate a control, like listboxes, grids, etc. and don't need to update this information.

>As I was trying to answer Rex's VB Datareader question I discovered I could directly bind a DataGrid to Datareader
>
>DataGrid1.DataSource = dr;
>
>
>I was going through the process of Opening the reader, constructing a dataset and then populating all of the rows. Who knew.
>
>My question - Can all controls directly bind to a DataReader? Especially a DropDownList.
>TIA,
>Doug
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform