Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
53790
How to implement pagination in UltraGrid control
posted

Sometimes we receive requirements for Page functionality ( Pagination ) into our WinGrid.  As you know from our online documentation and forum threads that our WinGrid does not have any paging functionality ( at that moment you could use Load-On-Demand feature of the UltraDataSource component. This allows you to only load into the grid the rows that are needed, rather than all of them.)

One possible approach to achieve desired behavior, could be if you inherit  default functionality from our WinGrid and extend it. I made a small sample, of course it is not fully functional, but you can use it as a starting point. You are able:

-       to use page navigation

-       to change dock style of your page navigator

-       to determinate number of rows per page

-       to use Load-On-Demand functionality

-       to use Sort functionality

-       to use Filtering

Please note that I didn`t have a time to make a lot of tests, so If anybody find any bugs, errors, doubts, please do not hesitate to write me. It would be useful and I will look at that in the first free time spot I have.

Parents
  • 53790
    Verified Answer
    posted

    If you take a look at the attached video file below, you we see how work this grid with 100 000 rows, 10 columns and different settings of “Rows per Page” property:

    -       with “Rows Per Page” = 100;

    -       with “Rows Per Page” = 10;

    -       with “Rows Per Page” = 17; this will present that last page contains less number of rows.

    -       with “Rows Per Page” = 1 000 000; this will present that grid`s contain only one page.

    Video003.part01.rar
Reply Children