in the help I found that:

Selected index - number of the row selected for viewing or editing

but in the SetSelectedIndex method the code is related to the columns, not rows:

procedure TCustomDBGrid.SetSelectedIndex(const AValue: Integer);
begin
  Col := FirstGridColumn + AValue;
end;

where is the error?
andrea

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to