Skip to main content

PivotGridFieldBase.Caption Property

Gets or sets the field’s display caption.

Namespace: DevExpress.XtraPivotGrid

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

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation


public string Caption { get; set; }

Property Value

Type Default Description
String String.Empty

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption property.


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.

See Also