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

PivotChartDataSourceRow Class

A row in the datasource passed to the chart control.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public class PivotChartDataSourceRow :
    PivotChartDataSourceRowBase

The following members return PivotChartDataSourceRow objects:

#Remarks

When a chart control is bound to a pivot grid, the pivot grid prepares a specific chart datasource and passes it to the chart control.

This datasource is a table with three columns: Argument, Series and Value. Each row corresponds to a particular pivot grid cell and will be represented by a point in the chart. Values contained in a row specify the argument, series and value of this chart’s point.

The PivotChartDataSourceRow class instances are individual rows in the chart datasource. You can access them when handling the PivotGridControl.CustomChartDataSourceRows event.

This event is fired before a pivot grid passes the datasource to the chart control allowing you to customize data passed to the chart. The event parameter’s PivotCustomChartDataSourceRowsEventArgs.Rows property provides access to the collection of PivotChartDataSourceRow instances.

Use the PivotChartDataSourceRowBase.Argument, PivotChartDataSourceRowBase.Series and PivotChartDataSourceRowBase.Value properties to obtain and modify values contained in the current row. You can also obtain information about the pivot grid cell that corresponds to the current row. To do this, use the PivotChartDataSourceRow.CellInfo, PivotChartDataSourceRow.ColumnValueInfo and PivotChartDataSourceRow.RowValueInfo properties.

#Inheritance

Object
PivotChartDataSourceRowBase
PivotChartDataSourceRow
See Also