Skip to main content

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

PivotGridControl.SummaryDataSourceFieldNaming Property

Gets or sets the rule for naming columns that correspond to data fields, when creating a data source via the CreateSummaryDataSource methods.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public SummaryDataSourceFieldNaming SummaryDataSourceFieldNaming { get; set; }

#Property Value

Type Description
SummaryDataSourceFieldNaming

A DevExpress.XtraPivotGrid.DataFieldNaming value that specifies the column naming convention.

Available values:

Name
FieldName
Name

#Remarks

The PivotGridControl.CreateSummaryDataSource method returns a summary data table which is a two-dimensional representation of data displayed in the PivotGridControl. This summary data table can be used as a data source for regular grid controls, such as the DXGrid.

The columns in a summary data source, which correspond to data fields, are named according to the SummaryDataSourceFieldNaming property. If this property is set to FieldName, the columns are named using values of the data fields’ PivotGridField.FieldName properties.

If there are multiple data fields bound to the same field(s), the corresponding columns in a summary data source will have identical names. For the columns to have different names, set the SummaryDataSourceFieldNaming property to Name. In this instance, these columns will be named according to the data fields’ Name property.

The captions of columns in a summary data source are specified by the PivotGridField.Caption properties of fields.

See Also