.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PivotDataField.Name Property

Gets or sets the name of the data field.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll


string Name { get; set; }

Property Value

Type Description

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


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.


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