A newer version of this page is available. Switch to the current version.

GridColumn.GetCaption() Method

Returns the actual display caption for the current column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v19.2.dll


public virtual string GetCaption()


Type Description

A string that specifies the column's actual display caption.


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