I use this in my base grid object. Maybe someone else has a better idea. This stores the current record number to a property. Later it is used in the DynamicBackColor of the column to highlight the current row.
* AfterRowColumnChange
LPARAMETERS nColIndex
DODEFAULT(nColIndex)
WITH THIS
IF !EMPTY(.RECORDSOURCE)
.nRecNum = IIF(EOF(.RECORDSOURCE), RECCOUNT(.RECORDSOURCE), RECNO(.RECORDSOURCE))
.REFRESH()
ENDIF
ENDWITH