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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

populating a grid from a datareader

Thread ID:

Created:

Updated:

Platform:

Replies:

6451 Aug 13,2003 10:48 AM UTC Aug 13,2003 12:19 PM UTC WinForms 1
loading
Tags: GridControl
rick masters
Asked On August 13, 2003 10:48 AM UTC

Is it possible to populate a grid using a datareader?

Administrator [Syncfusion]
Replied On 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.

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.

Warning Icon 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.Close Icon

;