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

PivotDataField.Name Property

Gets or sets the name of the data field.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

string Name { get; set; }

#Property Value

Type Description
String

A String value that specifies the name of the data field.

#Remarks

When you add a pivot field to the data area, it automatically gets the default name consisting of the used summary function and original field name (e.g., “Sum of Sales”, or “Count of Units”). To change this default name, use the Name property.

Note that you can also use the PivotDataFieldCollection.Add method overload with the name parameter to specify the custom name for the data field added to the report.

Important

When renaming a field, make sure that the specified name is not equal to an existing PivotTable field name; otherwise, a System.InvalidOperationException exception will be thrown.

See Also