i want to show the data in grid in pages, (like we dont with ADO.Pages,AbsolutePosition concept in VB6)
Do we have any facility right now
like we have navigator control for records can we have it for pages of records
Any ideas / directives would be welcome
Thanks in advance
ADAdministrator Syncfusion Team September 22, 2003 08:34 AM
The grid has no built-in support for pagination. What I would suggest is that you place some buttons in your form. In the buttons Click event handler you can then create a new datatable and fill it with the subset of data from the underlying datasource that you want to display for a given page. That datatable could then be assigned to the grid as grid.DataSource. The grid will then display that table.
The following MSDN documentation (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatagridclassallowcustompagingtopic.asp) has some sample code how to manually create a DataTable and fill it with subset from data. See the ICollection CreateDataSource() method.