Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataReader
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00717343
Message ID:
00717370
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform