GetCellRowIndex
Calculate and return row index of TCell parameter.function GetCellRowIndex(ACell: TCell): Integer;Remarks
TCell class include RowIndex (and ColumnIndex) property but value of this property may not be up-to-date, especially after cell manipulations (such as sorting, deleting rows etc.).
RowIndex property is set after Cell property of grid is accessed. That way row indexes don't need to always be updated after row is added, deleted or moved.