[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TColumn.LinkField

Establishes a link between the FieldName and the Field in a Dataset.

Declaration

Source position: dbgrids.pas line 282

protected procedure TColumn.LinkField;

Description

LinkField is a procedure used to establish a link between the FieldName in the column and the Field in its Dataset. LinkField requires Grid to be assigned in order to access the DataLink and its Dataset. When Grid is unassigned, the value for Field is Nil. The DataLink in Grid must be Active to access the Fields in the dataset. When DataLink in not Active, the value in Field is Nil.

LinkField finds the Field in the linked dataset with the name specified in FieldName. The TField instance is stored in the Field property. LinkField calls the ApplyDisplayFormat method to update the DisplayFormat used for the column.

LinkField is called when reading the value for the Field property and it has not already been assigned.

See also

TColumn.LinkField

  

Establishes a link between the FieldName and the Field in a Dataset.

TColumn.DisplayFormat

  

The format to be used for display in this column.

TColumn.Field

  

Field in the Dataset associated with this Column.

TCustomDBGrid.DataLink

  

Datalink for the component with event handlers for the linked dataset.


Version 4.0 Generated 2025-05-03 Home