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;
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more