[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 287
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.
|
Field in the Dataset associated with this Column |
|
|
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 |
|
TCustomDBGrid is the base class for TDBGrid |
|
lazarus-ccr.sourceforge.net |