Posted 13 May 2022, 3:56 am EST
Hi.
Is there pagination functionality in C1FlexGrid so I can show only limited number of rows( per page)?
Thanks in advance.
Forums Home / ComponentOne / WinForms Edition
Posted by: a.sharov on 13 May 2022, 3:56 am EST
Posted 13 May 2022, 3:56 am EST
Hi.
Is there pagination functionality in C1FlexGrid so I can show only limited number of rows( per page)?
Thanks in advance.
Posted 15 May 2022, 2:32 pm EST
Hi,
You can implement the pagination functionality in the C1FlexGrid by loading a limited amount of data in your DataSource and assigning it to the C1FlexGrid when the page is clicked. Kindly refer to the attached sample showing a simple implementation of the same.
Kind Regards,
Kartik
Posted 25 May 2022, 11:11 pm EST
Hi,
To implement the pagination functionality like this, you can generate the buttons in the toolstrip as shown in the image, or you can also create a User Control similar to what is shown in the image. Then, you can use the similar logic from the previous response to fetch limited data for the Grid when any of the buttons is pressed. Kindly refer to the updated sample showing a simple implementation of the same.
DbNavigator_NavigationButtons.zip
Best Regards,
Kartik