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.
Up arrow icon