Your forms/grids OnGetValue event handler is passed the row as one of it's parameters. Simply verify the column is the one you want and return the row number.
function Form1.Grid1GetValue(const Row, Col: Integer): TValue;
begin
if Col = 0 then
Result := TValue.From<Integer>(Row);
end;