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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top