using the .row property you can find out which row has been selected

the .toprow property can set which row is the topmost visible row in the grid (thereby adjusting the scroll bar)