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

TColumn.GetDisplayName

Gets the display name for the collection item

Declaration

Source position: dbgrids.pas line 281

protected function TColumn.GetDisplayName: string; override;

Function result

Display name for the collection item

Description

GetDisplayName is an overridden String function used to get the display name for the column. The display name is used at design-time to get the name for the collection item, and at run-time when a dataset has not been assigned or opened for the definition.

The value in FieldName is used as the return value for the method, when it has been assigned in the column. Otherwise, the inheriited GetDisplayName method is called to get the return value.

Use FieldName to set the name of the Field used for the column.

See also

#lcl.DBGrids.TColumn.FieldName

  

Name of the Field with data for the column

#rtl.Classes.TCollectionItem.GetDisplayName

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