These properties tell you which cell of a grid has focus relative to the current position of the data in the grid.
nRow = grdGrid.RelativeRow
nCol = grdGrid.RelativeColumn
The values in these properties are counted from the cell currently in the upper-left corner of the grid. Like ActiveRow and ActiveColumn, you can't change these (use ActivateCell instead); and they reflect ColumnOrder, not the underlying order in the Columns collection.
The combination of RelativeColumn and LeftColumn (LeftColumn + RelativeColumn - 1) always tells you where you are in the grid. Of course, ActiveColumn gives you the same information.
* You might check in the grid's Scrolled event to see if
* the current record has gone offscreen.
IF This.RelativeRow = 0
* do something to move the record pointer so focus is
* in the visible area
ENDIF
ActivateCell, ActiveColumn, ActiveRow, Columns, ColumnCount, LeftColumn