TRVTableItemInfo.DeleteRows

<< Click to display table of contents >>

TRVTableItemInfo.DeleteRows

Deletes Count rows starting from the Index-th row.

procedure DeleteRows(Index, Count: Integer; DecreaseHeight: Boolean;

  EditCellAfter: Boolean = True);

Parameters:

Index index of the first row to delete, in range 0..RowCount-1.

Count number of rows to delete.

if DecreaseHeight = True, BestHeights of cells overlapping the deleted rows (due to cell-merging) will be decreased (recommended).

If EditCellAfter = True, and this table is inserted in an editor, the edited cell remains edited after this operation; or, if no cell was edited, or the edited cell was deleted, an appropriate cell in the next row becomes edited. If EditCellAfter = False, no cell is edited after this operation.

 

See also:

Table operations;

Undo note.

See also methods:

DeleteSelectedRows;

DeleteCols;

DeleteEmptyRows.