GridColumn.GetCaption() Method

Returns the actual display caption for the current column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual string GetCaption()
Public Overridable Function GetCaption As String

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