Check the position of the cursor
Source position: grids.pas line 1260
public procedure TCustomGrid.CheckPosition;