Good day everyone,
I have a form with 2 ultragrids on them. The left grid has its scrollbars hidden. Now I want the right grid to lead the left grid along. So if I move the scrollbar on the right grid I want the left grid to follow.
Now I know this has been answered before, and I followed that solution. Here is a snippet of my code:
UltraGrid1.ActiveRowScrollRegion.ScrollPosition = e.RowScrollRegion.ScrollPosition
End Sub
Ultragrid1 is my left grid and MultiLayerGrid1 is my center grid. This solution works HOWEVER the left grid is slower then my right grid. So when I scroll the left grid is always a step behind. So I tried to use the:
UltraGrid1.ActiveRowScrollRegion.ScrollPosition = e.NewState.ScrollPosition
But it has no effect.
Is it even possible to have the two grids synchronised completely ? The behaviour is simply not acceptable at the moment.
Thanks for any help in advance,
Lunaios
lunaios said:But it has no effect.
What exactly do you mean? You are setting the ScrollPositon of the left grid, but it's not scrolling? That doesn't make sense. There's no reason why setting the ScrollPosition should fail completely.
Or do you just mean that the behavior of the left grid lagging behind doesn't change?
I tested this out and it works fine for me using either the Before or AfterRowScrollRegions events. There is no noticable delay at all.
What version of the grid are you using? I tested this with v7.2.
My guess is that you are probably using some features of the grid that are slowing down the scrolling of the left grid. Are you applying appearances to the grid? Are you using transparency? How big is the grid control?
Are you using ValueLists or Editors?
This might also be a question of machine speed. Are you developing on a particular slow machine?