PivotField.Name Property
Gets or sets the PivotTable field’s name.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Name property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.