Visualizing ADO .NET DataReader resultset structure

  • Thread starter Thread starter Andrus
  • Start date Start date
A

Andrus

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.
 
Andrus said:
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.
 
Back
Top