How to scroll vertically 2 grids with one scrollbar?

How to scroll vertically 2 grids with one scrollbar?

Please, try to use the following function:

mygrid1.attachEvent("onScroll",function(){ mygrid2.objBox.scrollTop = mygrid1.objBox.scrollTop })