.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

PivotDataField.Name Property

Gets or sets the name of the data field.

Namespace: DevExpress.Spreadsheet

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

Declaration

string Name { get; set; }
Property Name As String
string Name { get; set; }
Property Name As String
string Name { get; set; }
Property Name As String

Property Value

Type Description
String

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

Property Value

Type Description
String

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

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