Skip to main content
A newer version of this page is available. .

PivotGridOptionsChartDataSourceBase.DataProvidePriority Property

Gets or sets whether the pivot grid should pass columns or rows to a bound chart control when it is impossible to find the lowest-level data.

Namespace: DevExpress.XtraPivotGrid.Data

Assembly: DevExpress.PivotGrid.v18.2.Core.dll

Declaration

[DefaultValue(PivotChartDataProvidePriority.Rows)]
[XtraSerializableProperty]
public virtual PivotChartDataProvidePriority DataProvidePriority { get; set; }

Property Value

Type Default Description
PivotChartDataProvidePriority **Rows**

A PivotChartDataProvidePriority enumeration member that specifies whether the pivot grid should pass columns or rows to a bound chart control.

Available values:

Name Description
Columns

Columns are passed to the chart when PivotGridOptionsChartDataSourceBase.DataProvideMode is set to PivotChartDataProvideMode.ProvideLastLevelData and it is impossible to find the lowest level within the selection.

Rows

Rows are passed to the chart when PivotGridOptionsChartDataSourceBase.DataProvideMode is set to PivotChartDataProvideMode.ProvideLastLevelData and it is impossible to find the lowest level within the selection.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to DataProvidePriority
WinForms Controls PivotGridControl
.OptionsChartDataSource.DataProvidePriority
ASP.NET Controls and MVC Extensions ASPxPivotGrid
.OptionsChartDataSource.DataProvidePriority
MVCxPivotGrid
.OptionsChartDataSource.DataProvidePriority
PivotGridSettings
.OptionsChartDataSource.DataProvidePriority
Reporting XRPivotGrid
.OptionsChartDataSource.DataProvidePriority

Remarks

The DataProvidePriority property is in effect when the PivotGridOptionsChartDataSourceBase.DataProvideMode property is set to PivotChartDataProvideMode.ProvideLastLevelData, but the pivot grid is unable to define which values have the lowest level.

For instance, consider the following pivot grid.

DataProvidePriority_PivotGrid

The selection contains cells from three aggregation levels: (Product Name, Grand Total), (Grand Total, Order Year), (Grand Total, Grand Total). In this instance, PivotGridControl cannot define which of the two former levels is the lowest.

The DataProvidePriority property allows you to specify whether to chart a column (the (Product Name, Grand Total) level) or row (the (Grand Total, Order Year) level).

See Also