Skip to main content
Table of Contents

TTMSFNCDataGrid.DeleteColumns Method

Removes consecutive columns, shifting the following columns to the left.

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

Syntax

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

Remarks

The operation is all-or-nothing: when CanDeleteColumn is False for any column in the range, nothing is deleted and a warning is logged. Cell data of the deleted columns is freed.

Parameters

Name Description
AColumn Zero-based index of the first column to delete.
ACount Number of columns to delete.