[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Establishes a link between the FieldName and the Field in a Dataset.
Source position: dbgrids.pas line 282
protected procedure TColumn.LinkField; |
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.
|
Establishes a link between the FieldName and the Field in a Dataset. |
|
|
The format to be used for display in this column. |
|
|
Field in the Dataset associated with this Column. |
|
|
Datalink for the component with event handlers for the linked dataset. |
Version 4.0 | Generated 2025-05-03 | Home |