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
close icon

Windows Forms Paging

Hi,I have a GridDataBoundGrid DataSource that is filled from Server Side paging. But I want paging with this for the client.So for example. The server responds with a result of 10 rows from the 100, together with information about the amount of pages. But the client needs to show that there are 10 pages. Also there is WCF involved in this.What is the best way to do this?Thanks in advance.

1 Reply

MG Mohanraj Gunasekaran Syncfusion Team June 20, 2017 03:40 PM UTC

 Hi Yazid, 
 
Thanks for using Syncfusion product. 
 
By default, GridDataBoundGrid does not have the paging support. So, we would suggest to use the GridGroupingControl which has the paging support. Please refer the below code example, 
 
Code example 
Pager pager = new Pager(); 
pager.Wire(this.gridGroupingControl1); 
 
 
Please refer the below UG link, 
 
We can set the number of records to visible in the page by using PageSize property. Please refer to the below code example, 
 
Code example 
Pager pager = new Pager(); 
pager.PageSize = 10; 
pager.Wire(this.gridGroupingControl1); 
 
 
Please refer the below UG link, 
 
If you want to load the record in Pager on demand, it does not have the support for loading the records on demand. Already, we have logged feature report for “Loading the records for each page on demand directly from the server” for GridGroupingControl. So, this feature will be available in any of our upcoming releases.  
 
Regards, 
Mohanraj G 
 


Loader.
Live Chat Icon For mobile
Up arrow icon