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

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 for the column has not been assigned or opened.

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

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

See also

TColumn.FieldName

  

Name of the Field with data for the column.

TCollectionItem.DisplayName


Version 4.0 Generated 2025-05-03 Home