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. Image for the cookie policy date

populating a grid from a datareader

Is it possible to populate a grid using a datareader?

1 Reply

AD Administrator Syncfusion Team August 13, 2003 12:19 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon