RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TColumnTitle.Caption Property

Specifies the text that appears at the top of the column.

Pascal
property Caption: string;
C++
__property AnsiString Caption;

The Caption property contains a text string that identifies the column. If the dgTitles flag is set in the data grid's Options property, the title appears on the form at runtime. 

If the FieldName property is set in TColumn, the Caption default value comes from the DisplayLabel property of the Field object, which itself defaults to FieldName. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!