[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 287

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.

See also

#lcl.DBGrids.TColumn.Field

  

Field in the Dataset associated with this Column

#lcl.DBGrids.TColumn.DisplayFormat

  

The format to be used for display in this column

#lcl.DBGrids.TColumn.ApplyDisplayFormat

  

Applies a new display format to the Field which gets data for the column

#lcl.DBGrids.TCustomDBGrid

  

TCustomDBGrid is the base class for TDBGrid

#lcl.DBGrids.TCustomDBGrid.DataLink

The latest version of this document can be found at lazarus-ccr.sourceforge.net.