Back to Devexpress

PivotViewOptions.ColumnHeaderCaption Property

officefileapi-devexpress-dot-spreadsheet-dot-pivotviewoptions-af65893b.md

latest2.3 KB
Original Source

PivotViewOptions.ColumnHeaderCaption Property

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

Declaration

csharp
string ColumnHeaderCaption { get; set; }
vb
Property ColumnHeaderCaption As String

Property Value

TypeDescription
String

A String value that specifies the column header caption.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ColumnHeaderCaption
PivotTable

.View .ColumnHeaderCaption

|

Remarks

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.

csharp
pivotTable.View.ColumnHeaderCaption = "Customers";
vb
pivotTable.View.ColumnHeaderCaption = "Customers"

The image below illustrates the result of code execution.

See Also

RowHeaderCaption

PivotViewOptions Interface

PivotViewOptions Members

DevExpress.Spreadsheet Namespace