We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

populating a grid from a datareader

Thread ID:

Created:

Updated:

Platform:

Replies:

6451 Aug 13,2003 06:48 AM Aug 13,2003 08:19 AM Windows Forms 1
loading
Tags: GridControl
rick masters
Asked On August 13, 2003 06:48 AM

Is it possible to populate a grid using a datareader?

Administrator [Syncfusion]
Replied On August 13, 2003 08:19 AM

There is no built-in support for using a DataReader. You can use a DataReader.Read to retrieve rows, and DataRead.GetXXXX(col) to retrieve column values that you could then use to populate a GridControl. If you want to use a GridDataBoundGrid, then you would have to use DataReader.Read and DataReader.GetXXXX to populate something (maybe a ArrayList, DataTable, ..., IList ????), and then set the GridDataBoundGrid.DataSource to this object.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;