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
950
Changing DataSource data - very slow UltraGrid
posted

I found that UltraGrid is very slow to refresh after i make changes to the attached UltraDataSource. I followed Mike's article about UltraGrid's performance and added            

this.ultraGrid1.BeginUpdate();
this.ultraGrid1.SuspendRowSynchronization();

and corresponding Resume and EndUpdate functions but that didn't improve matters much. After some experimenting I got reasonable performance if I just set DataSource of my grid to NULL, do changes to data source and then assign my data source back to grid.

I just think I'm missing something here.

Parents
No Data
Reply
  • 469350
    Offline posted

    What kind of changes are you making?

    Any time you make a change to the data source, like adding, deleting, or editing rows, the data source notifies the grid of the change and the grid responds. So if you make a lot of changes all at once, it can be a performance issue.

    BeginUpdate tells the grid not to paint, so that will help improve performance.

    SuspendRowSynchronization tells the grid not to synchronize the rows, so that will help some more.

    But there is still some processing going on in the grid. So if those methods don't help, then we'd have to know exactly exactly what you are doing to the data source and consequently what notifications the grid is getting so we could see why the grid is slow.

    If you can duplicate the problem in a small sample project, we could check it out and maybe improve the performance or give you tips on how you can make it faster.

Children