Skip to main content
Table of Contents

TTMSFNCDataGridCore.ColumnCount Property

Total number of columns, fixed columns included. Default is 4.

API unit family: TMSFNCDataGridCore Declaring type: TTMSFNCDataGridCore Type: Integer

Syntax

FMX.TMSFNCDataGridCore.hppPascalC++
property ColumnCount: Integer;
__property int ColumnCount = {read=FColumnCount, write=SetColumnCount, default=4};

Default: 4

Remarks

Changing it recalculates the layout (unless an update block is active) and synchronizes the column collection of the grid. Per-column state stored for indexes beyond the new count is kept but ignored, and reappears when the count grows again; call ClearColumnInfo to reset it.