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

Paging in GridDataboundgrid

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.

1 Reply

AD Administrator Syncfusion Team May 6, 2003 09:31 AM

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.

Loader.
Live Chat Icon For mobile
Up arrow icon