Back to Devexpress

PivotGridOptionsChartDataSourceBase.DataProvidePriority Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-data-dot-pivotgridoptionschartdatasourcebase-4a7361a9.md

latest4.6 KB
Original Source

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.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(PivotChartDataProvidePriority.Rows)]
public virtual PivotChartDataProvidePriority DataProvidePriority { get; set; }
vb
<DefaultValue(PivotChartDataProvidePriority.Rows)>
Public Overridable Property DataProvidePriority As PivotChartDataProvidePriority

Property Value

TypeDefaultDescription
PivotChartDataProvidePriorityRows

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

|

Available values:

NameDescription
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.

|

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.

The selection contains cells from three detail 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

DataProvideMode

Hierarchical Value Presentation

PivotGridOptionsChartDataSourceBase Class

PivotGridOptionsChartDataSourceBase Members

DevExpress.XtraPivotGrid.Data Namespace