Skip to main content
Table of Contents

TTMSFNCDataGridCore.ClearColumnInfo Method

Removes the stored per-column state (custom width, cached position, display order, merged and hidden flags) of one column or of all columns.

API unit family: TMSFNCDataGridCore Declaring type: TTMSFNCDataGridCore

Syntax

FMX.TMSFNCDataGridCore.hppPascalC++
procedure ClearColumnInfo(AColumn: Integer = -1); virtual;
virtual void __fastcall ClearColumnInfo(int AColumn = 0xffffffff);

Remarks

Affected columns revert to DefaultColumnWidth and become visible again. For a single column only the entries keyed by that index are removed; a reverse-order entry pointing to it from another display position is kept, so prefer -1 when resetting a reordered grid. Runs inside a BeginUpdate/EndUpdate pair. Cell data is not touched.

Parameters

Name Description
AColumn Column whose state is removed, or -1 (default) for all columns.