with ThisForm.myGrid .setfocus && Needed for active and relativerow if .ActiveRow < 10 return endif do while .relativerow # 10 && Hit row 10 ? .doscroll(iif(.relativerow < 10,0,1)) && Scroll up or down enddo .refresh endwithOr if you mean to set focus to 10th row whatever it's :