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

TColumnTitle.GetDefaultCaption

Gets the default caption used as the title for the grid column

Declaration

Source position: dbgrids.pas line 252

protected function TColumnTitle.GetDefaultCaption: string; override;

Function result

Default value used as the title for the column

Description

GetDefaultCaption is an overridden String function in TColumnTitle which provides the default caption used as the title for a grid column.

If a Field has been created for the column, the value of its DisplayName property are used as the caption. If only the FieldName property is set, it is used as the caption. Otherwise, the inherited method is called to get the default caption for the column.

See also

#lcl.Grids.TGridColumnTitle.GetDefaultCaption

  

GetDefaultCaption - returns th e default caption for this column

#lcl.DBGrids.TColumn

  

Implements a display column for the TDBGrid control

#fcl.db.TField

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