Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotViewOptions.RowHeaderCaption Property

Gets or sets the text to be displayed in the row header of a pivot table shown in compact form.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

string RowHeaderCaption { get; set; }

#Property Value

Type Description
String

A String value that specifies the row header caption.

#Property Paths

You can access this nested property as listed below:

Object Type Path to RowHeaderCaption
PivotTable
.View .RowHeaderCaption

#Remarks

When a pivot table is displayed in compact form, use the RowHeaderCaption and PivotViewOptions.ColumnHeaderCaption properties to specify the text to be displayed in the row and column headers instead of the default “Row Labels” and “Column Labels” strings.

pivotTable.View.RowHeaderCaption = "Products";

The image below illustrates the result of code execution.

SpreadsheetPivotTable_RowHeaderCaption

See Also