Skip to main content
Table of Contents

TTMSFNCDataGrid.DeleteRows Method

Removes consecutive rows, shifting the following rows up.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
procedure DeleteRows(ARow, ACount: Integer);
void __fastcall DeleteRows(int ARow, int ACount);

Remarks

The operation is all-or-nothing: when CanDeleteRow is False for any row in the range, nothing is deleted and a warning is logged. Node child counts are adjusted when deleting inside a node.

Parameters

Name Description
ARow Zero-based index of the first row to delete.
ACount Number of rows to delete.