Jump to content


Photo

Sync vertical scrioll of two grids


  • Please log in to reply
1 reply to this topic

#1 dem

dem
  • Members
  • 9 posts
  • Gender:Male

Posted 08 October 2009 - 11:47 AM

Hello,

I have two grids with the same number of rows. I have to synchronize the vertical scroll of both grids together.

That means : FirstVisibleRow of Grid1 should be = to FirstVisibleRow of Grid2.

This could be performed in the OnVerticalScroll Event, but I did not find out how to do this as the FirstVisibleRow property is ReadOnly.

Maybe someone can help me to achieve this.

Regards

dem


#2 dem

dem
  • Members
  • 9 posts
  • Gender:Male

Posted 08 October 2009 - 11:54 AM

OK, I just read the topic of jz5309 wich was not present yet yesterday when I had the problem.

Using VertScrollBar.Position helps.

Thanks.

dem




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users