GridColumn.GetCaption() Method
Returns the actual display caption for the current column.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v26.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
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.
See Also