TGridColumnTitle.Caption property
Text displayed as the title for the grid column.
Declaration
property Caption: TCaption read GetCaption write SetCaption stored IsCaptionStored;Description
Caption is a
TCaption property which contains the text
displayed as the title for a grid column in a fixed cell header. If an
explicit value has not been assigned to Caption, the value from
GetDefaultCaption is used as the property value ('Title').
Changing the value for the property causes the ColumnChanged method in Column to be called. This updates the collection item in the Grid where the Column is defined, and resets the value in the WidthChanged property for the Column.
Use Font to control the typeface and display attributes for the text.
Use Alignment to control the horizontal alignment for the text within the cell header.
Use Layout to control the vertical alignment for the text within the cell header.
Use MultiLine to indicate whether the text can be word-wrapped when it is longer than the display width for the column.
Use ImageIndex to specify the glyph displayed for in the cell header for the column.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
