aspnet-devexpress-dot-web-dot-aspxpivotgrid-b0bf19a3.md
Defines the calculation that aggregates values cumulatively in the window.
Namespace : DevExpress.Web.ASPxPivotGrid
Assembly : DevExpress.Web.ASPxPivotGrid.v25.2.dll
NuGet Package : DevExpress.Web
public class RunningTotalBinding :
RunningTotalBindingBase
Public Class RunningTotalBinding
Inherits RunningTotalBindingBase
Follow the steps listed below to bind a Pivot Grid field to the result of the Running Total window calculation.
RunningTotalBinding class with the Source property set to the DataBindingBase descendant instance.RunningTotalBinding instance to the PivotGridFieldBase.DataBinding property.The example below shows how to use RunningTotalBinding to display a cumulative total of the Extended Price field values.
<dx:PivotGridField ID="fieldRunningTotal" Area="DataArea" AreaIndex="4" Name="fieldRunningTotal" Caption="RunningTotal">
<DataBindingSerializable>
<dx:RunningTotalBinding SummaryType="Average" Direction="AcrossThenDown" PartitioningCriteria="ColumnValueAndRowParentValue">
<SourceSerializable>
<dx:DataSourceColumnBinding ColumnName="Extended Price" />
</SourceSerializable>
</dx:RunningTotalBinding>
</DataBindingSerializable>
<CellFormat FormatString ="c2" FormatType="Numeric"></CellFormat>
</dx:PivotGridField>
See the following topic for more information: Data Binding API.
DevExpress.XtraPivotGrid.IDesignerContextProvider
Object DataBindingBase CalculationBindingBase DirectedCalculationBindingBase RunningTotalBindingBase RunningTotalBinding
See Also