Skip to main content

RunningTotalBinding Class

Defines the calculation that aggregates values cumulatively in the window.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v22.1.dll

NuGet Package: DevExpress.Win.PivotGrid


public class RunningTotalBinding :


Follow the steps listed below to bind a PivotGrid field to the result of the calculation in Optimized mode.

  1. Create an instance of the RunningTotalBinding class.
  2. Set the Source property set to the DataBindingBase descendant instance.
  3. Specify the window frame and summary type.
  4. Assign the RunningTotalBinding instance to the PivotGridField.DataBinding property.


The following code snippet illustrates the use of the Data Binding API to calculate a running summary on the column:

Run Demo: Optimized Mode - Field Calculation Bindings

public static void PivotCalculations(PivotGridControl pivotGridControl) {                        
    DataSourceColumnBinding productAmountBinding = new DataSourceColumnBinding("ExtendedPrice");
    pivotGridControl.Fields["fRunningTotal"].DataBinding = new RunningTotalBinding(
        productAmountBinding, CalculationPartitioningCriteria.ColumnValue, PivotSummaryType.Sum);
See Also