officefileapi-devexpress-dot-spreadsheet-dot-pivotviewoptions-af65893b.md
Gets or sets the text to be displayed in the column header of a pivot table shown in compact form.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
string ColumnHeaderCaption { get; set; }
Property ColumnHeaderCaption As String
| Type | Description |
|---|---|
| String |
A String value that specifies the column header caption.
|
You can access this nested property as listed below:
| Object Type | Path to ColumnHeaderCaption |
|---|---|
| PivotTable |
.View .ColumnHeaderCaption
|
When a pivot table is displayed in compact form, use the ColumnHeaderCaption and PivotViewOptions.RowHeaderCaption properties to specify the text to be displayed in the column and row headers instead of the default “Column Labels” and “Row Labels” strings.
pivotTable.View.ColumnHeaderCaption = "Customers";
pivotTable.View.ColumnHeaderCaption = "Customers"
The image below illustrates the result of code execution.
See Also