GridColumn.GetCaption() Method
Returns the actual display caption for the current column.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
Returns
Type | Description |
---|---|
String | A string that specifies the column’s actual display caption. |
Remarks
If the GridColumn.Caption property is set to an empty string, a friendly display caption is automatically generated according to the GridColumn.FieldName property. Use the GetCaption method to return the actual display caption. To get the actual display caption in Layout Views, use the LayoutView.GetFieldCaption method.
See GridColumn.Caption to learn more.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetCaption() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.