I have two grids with same number of rows ( also same height). Both these grids have vertical scrolls ( using style overflow)
When I perform the vertical scroll on the second table , I want the first grid to scroll automatically by same number of rows up/down.
Here’s how you can do that. It even works if you have a horizontal scrollbar:
This code assumes that “grid1” and “grid2” are the IDs of the DIVs in which the tables are contained respectively.