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
217
Paging for UltraGrid
posted

I have about 120,000 rows in my grid and they are going to increase in number in short span. Currently its taking about 12 seconds to extract data from DB and painting it on the UI. But i want to optimize it more. I have seen there is a DisplayLayout.Pager api on WebGrid. Do we have something like that for UltraGrid for Window based Applications.

 I want to load rows at the scroll of the scrollbar and not loading all the rows in one shot.

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

        The WinGrid does not have any paging functionality. Paging is really more of a web thing than a WinForms thing in my opinion. 

        But you can load grid data on-demand by using the UltraDataSource component as a sort've intermediary between the grid and your real data source. There's a sample included with NetAdvantage in the grid Samples Explorer and also as part of the UltraDataSource sample calling the million rows sample. This sample demonstrates displaying a WinGrid with a million rows by loading the rows on demand as they are needed.  

Reply Children