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

PivotField.Name Property

Gets or sets the PivotTable field's name.

Namespace: DevExpress.Spreadsheet

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

Declaration

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

Property Value

Type Description
String

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

Remarks

Use the Name property to rename a specific field in the PivotTable report. By default, fields get their names from the original source data (the field's source name can be obtained using the PivotField.SourceName property).

To change the name of the field located in the data area of your report, use the PivotDataField.Name property.

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