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
125
Some rows are not updated until I hover over with the mouse
posted

Every now and then I update about 3 rows. The content of the first row is not refreshed until I hover over with the mouse pointer.

I use the same update method for all rows.

This happens mostly when row 1-3 is updated very fast after each other. Any ideas?

Parents
  • 469350
    Offline posted

    Hi,

    What version of the grid are you using?

    What kind of DataSource are you binding the grid to?

    If your DataSource is an IList (and not an IBindingList), then the grid will not be notified of changed in the data source. In such a case, you can manually tell the grid that something has changed by calling grid.Rows.Refresh(ReloadData).

    Also, if you know you are going to be updating more than one row in the grid's datasource at once, it's sometimes a good idea to tell the grid not to paint or update from the data source during the process, but instead to do one big update after all the changes have completed. This is better for performance and efficiency and can also sometimes alleviate problems like the you you describe.

    The way to do it looks like this:


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

                try
                {
                    // Update a bunch of rows in the grid's DataSource here.
                }
                finally
                {
                    this.ultraGrid1.ResumeRowSynchronization();
                    this.ultraGrid1.EndUpdate();               
                }

Reply Children