Connecting Tech Pros Worldwide Forums | Help | Site Map

Visualizing ADO .NET DataReader resultset structure

Andrus
Guest
 
Posts: n/a
#1: Sep 5 '08
For maintenance I want to add command to Winforms application which shows
structure of ADO.NET
DataReader resultset: column names and types in DataGridView or in other
winforms control.

Where to find sample code for this ?

Andrus.


Pavel Minaev
Guest
 
Posts: n/a
#2: Sep 5 '08

re: Visualizing ADO .NET DataReader resultset structure



"Andrus" <kobruleht2@hot.eewrote in message
news:%23ALqfK1DJHA.4676@TK2MSFTNGP05.phx.gbl...
Quote:
For maintenance I want to add command to Winforms application which shows
structure of ADO.NET
DataReader resultset: column names and types in DataGridView or in other
winforms control.
>
Where to find sample code for this ?
Use IDbDataReader methods FieldCount, GetName and GetFieldType, save the
values returned from those into any collection, then bind a DataGridView to
that collection.


Closed Thread