RunningTotalBinding Class
Defines the calculation that aggregates values cumulatively in the window.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
Declaration
Remarks
Follow the steps listed below to bind a PivotGrid field to the result of the calculation in Optimized mode.
- Create an instance of the RunningTotalBinding class.
- Set the Source property set to the DataBindingBase descendant instance.
- Specify the window frame and summary type.
- Assign the RunningTotalBinding instance to the PivotGridField.DataBinding property.
Example
The following code snippet illustrates the use of the Data Binding API to calculate a running summary for the Product Sales column:
public static void PivotCalculations(PivotGridControl pivotGridControl) {
DataSourceColumnBinding productAmountBinding = new DataSourceColumnBinding("ExtendedPrice");
//Calculate a running summary on the column.
pivotGridControl.Fields["fRunningTotal"].DataBinding = new RunningTotalBinding(
productAmountBinding, CalculationPartitioningCriteria.ColumnValue, PivotSummaryType.Sum);
}
Inheritance
See Also