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

Paging in GridDataboundgrid

Thread ID:





4279 May 6,2003 01:11 PM UTC May 6,2003 01:31 PM UTC WinForms 1
Tags: GridControl
Soung Bae
Asked On May 6, 2003 01:11 PM UTC

I was wondering if there was any built in functionality for paging in the grid? If not, any suggestions would be helpful. I am binding to a dataset table.

Administrator [Syncfusion]
Replied On May 6, 2003 01:31 PM UTC

There is no built in support for paging in a GridDataBoundGrid. The grid just displays whats in the DataTable, and only accesses what it needs to draw. If you want to page, then you would work with the DataSource and the DataTable, filling your datatable with more rows as needed. One technique for deciding 'when its needed' would be to maintain a high water mark in your datatable which reflects the last row loaded. Then you could handle the TopRowChanged event in the grid, and if the top row is within some limit of your highwatermark, then have your dataadapter load your next page. This would raise your highwater mark. Then as long as the grid is scrolled under the highwater mark, it would use the current disconnected ado.net datastore. When you scroll close to your high water mark, there would be another trip to the datasource to retrieve more data through the adapter and appended to the local datastore.


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