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
390
Refresh visible rows of grid
posted

Hi,

I have a grid where some of the values in the grid are animating on a timer.  I would like to iterate through the visible (ie, visible to the user) rows and refresh the necessary UltraGridCells if the cells are animating. 

Is there a way to iterate through the on-screen, visible rows of the grid? 

I have tried using the VisibleRowCount, but that returns all of the rows in the grid, and not just the rows being displayed.

I have also tried using the ActiveRowScrollRegion.VisibleRows, but that method occasionally throws an exception.

So far, my best solution is to iterate through all of the rows in the grid, check the UIElement to know if the row is being displayed, and refresh the row as necessary.  This does not seem to perform well as the grid could contain 1000s of rows whereas only 50 or so are visible to the user.

Any ideas?

Thanks in advance,
Steve

Parents Reply Children
No Data