Developer

SelectedRow

Specifies absolute index of currently selected row. When grid is focused, selected row is highlighted.

property SelectedRow: Integer read GetSelectedRow write SetSelectedRow default -1;
Example:

NextGrid61.Cell[2, NextGrid61.SelectedRow].Color := clRed;

Remarks


When InsertSelected property is set to True, SelectedRow is set to -1 automatically.

See also