Table of Contents

TTMSFNCDataGridDatabaseAdapterColumn Class

Describes the mapping between one dataset field and one grid column. Configured via the Columns collection of TTMSFNCDataGridDatabaseAdapter.

API unit family: TMSFNCDataGridDatabaseAdapter Inherits from: TCollectionItem

Syntax

TTMSFNCDataGridDatabaseAdapterColumn = class(TCollectionItem)

Properties

Name Description
AutoCreated True when this column was created automatically by the adapter from the dataset field list and was not defined manually.
CheckBoxField When True, the cell value is rendered as a check box (True/False toggle) instead of plain text. Mutually exclusive with PictureField and ProgressField.
DataBoolean Custom Boolean payload for application use. Not used by the adapter internally.
DataInteger Custom integer payload for application use. Not used by the adapter internally.
DataObject Custom object reference for application use. Not used by the adapter internally.
DataPointer Custom pointer payload for application use. Not used by the adapter internally.
DataString Custom string payload for application use. Not used by the adapter internally.
Field The TField instance bound to this column. Derived from FieldName against the active dataset. Read-only at runtime; set FieldName to change the binding.
FieldName The dataset field name bound to this column. Setting this property also updates the live Field reference when a dataset is active.
GridColumn The corresponding grid column object for this adapter column mapping.
HTMLTemplate HTML template string used to format cell content. Use field-name placeholders enclosed in curly braces (e.g. ``) to embed field values. Leave empty to use default text rendering.
Header Override text for the column header. When empty the adapter uses the field's DisplayLabel (or FieldName) as the header.
PictureField When True, the cell renders a BLOB/graphic field as an embedded image. Mutually exclusive with CheckBoxField and ProgressField.
ProgressField When True, the cell renders a numeric field as a progress bar. Mutually exclusive with CheckBoxField and PictureField.
UseColumnEditor When True, the grid's column editor dialog is used for in-place editing instead of the default text editor. Default is False.
UseLookupEditor When True (default), lookup fields automatically open a drop-down list populated from the lookup dataset. Set to False to fall back to plain text editing for lookup fields.

Methods

Name Description
Adapter Returns the database adapter that owns this column mapping.