Specifies the text that appears at the top of the column.
property Caption: string;
__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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!