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

PivotGridFieldBase.Caption Property

Gets or sets the field’s display caption.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v18.2.Core.dll


public string Caption { get; set; }

Property Value

Type Default Description


A string specifying the field’s display caption.


Use the Caption property to specify the text displayed within the field’s header.

If the Caption property is set to an empty string the field’s header will display the value of the PivotGridFieldBase.FieldName property. If the PivotGridFieldBase.FieldName property is set to an empty string, the field’s header will display the value of the field’s Name property.

If the PivotGridFieldOptions.ShowSummaryTypeName property is enabled, the field’s summary type enclosed in round brackets is appended to the field’s Caption. To get the actual text displayed within a field’s header, use the PivotGridFieldBase.HeaderDisplayText property.

See Also