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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

populating a grid from a datareader

Thread ID:





6451 Aug 13,2003 10:48 AM UTC Aug 13,2003 12:19 PM UTC WinForms 1
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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon