471,616 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

Visualizing ADO .NET DataReader resultset structure

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.

Sep 5 '08 #1
1 1371

"Andrus" <ko********@hot.eewrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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.
Sep 5 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Ravi | last post: by
4 posts views Thread by VB Programmer | last post: by
20 posts views Thread by Mark | last post: by
1 post views Thread by Patrick.O.Ige | last post: by
6 posts views Thread by Kalim Julia | last post: by
3 posts views Thread by Alex Maghen | last post: by
3 posts views Thread by Osamede.Zhang | last post: by
7 posts views Thread by =?Utf-8?B?UGV0ZXI=?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.