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
680
AfterRowRegionScroll on Ultragrid
posted

I have two hierarchical grids on a form. The window is split in to two vertical regions. Left side has one grid and Right has the other.

There is a vertical scroll bar since all rows expanded on both grids.  I want both scroll bars to move in sync so I subscribed to "AfterRowRegionScroll" event on both grids.  Below is the code to set Scroll position

this.uxGridLeft.ActiveRowScrollRegion.ScrollPosition = e.RowScrollRegion.ScrollPosition;

The above line is in "AfterRowRegionScroll" event handler of Right side grid.

Now, the problem is that the two scroll bars are not in sync all the time. Could you tell me if this is the right way to do. I'm also doing the horizontal scroll move the same way using "AfterColRegionScroll" and this seems to be fine.

 

Thank you