DeleteRow
Delete row with specified index from grid.
procedure DeleteRow(const Index: Integer; KeepSelected: Boolean = True);
Parameters
- Index
- Integer
Indicate Index (zero-based) inside rows list.
- KeepSelected
- Boolean
If Index was last visible row, selection will be shifted to new last visible row.
If row with specified index doesn't exists, access violation exception will occur.
Example
NextGrid61.DeleteRow(5);
if (NextGrid61.RowExists(NextGrid61.SelectedRow) then
begin
NextGrid61.DeleteRow(NextGrid61.SelectedRow);
end;