Table of Contents

TTMSFNCDataGridColumn Class

Represents a single column in the grid's Columns collection. Controls the column's appearance, editor type, filter settings, formatting, data binding, visibility, and width.

API unit family: TMSFNCDataGridRenderer Inherits from: TCollectionItem

Syntax

TTMSFNCDataGridColumn = class(TCollectionItem)

Properties

Name Description
Appearance Column-level appearance override. When settings include gcsAppearance, this appearance is applied to every cell in the column.
Binding Defines the raw True/False data values used when importing boolean data into this column.
ControlAlign Alignment of the embedded control (image, button, etc.) within the cell. Default is gcaNone.
ControlHeight Fixed height of the embedded control in pixels. When 0, the control fills the cell height.
ControlMargins Margins around the embedded control inside the cell.
ControlPosition Position of the embedded control within the cell (e.g. center-right). Default is gcpCenterRight.
ControlText Caption or label text applied to all embedded controls (buttons, checkboxes) in this column.
ControlWidth Fixed width of the embedded control in pixels. When 0, the control fills the cell width.
DataBoolean Application-defined Boolean tag for this column. When True, the application flag is set; when False, it is not set.
DataInteger Application-defined integer tag for this column. Not used by the grid itself.
DataObject Application-defined object reference for this column. Not used by the grid itself.
DataPointer Application-defined pointer for this column. Not used by the grid itself.
DataString Application-defined string tag for this column. Not used by the grid itself.
Editor The in-place editor type opened when a data cell in this column is edited.
EditorItems Items list used as drop-down options when Editor is getComboBox or getComboEdit.
EditorTarget Determines whether the in-place editor edits the cell's text value or its background fill colour.
FilterButton When True (default), a filter button is shown in the fixed header cell of this column.
FilterDefaultType The default filter comparison operator pre-selected in the filter popup for this column.
FilterEditor When True, an in-row filter editor cell is visible in the designated filter row for this column.
FilterEditorType The input control type used in the filter row editor for this column.
Formatting Formatting settings for display of cell values in this column.
Header Text displayed in the fixed header cell for this column. Defaults to the column's 1-based index if not set.
Name Internal name used to identify this column by name via ColumnByName.
Settings Set of column settings that override the corresponding per-cell values for all cells in this column (e.g. appearance, type, editor).
TypeRange Restricts which rows the column's Type setting applies to: all rows, normal rows only, or fixed rows only.
ValueType Inferred Delphi TTypeKind for the cell values in this column, derived from the column's formatting type.
Visible When False, this column is hidden from the grid display. Default is True.
Width Width of this column in device-independent pixels. The default is determined by the grid's default column width setting.

Methods

Name Description
AddSetting Adds a column setting object that should be updated when this column changes.
RemoveSetting Removes a previously attached column setting object.

Used by