MovingCalculationBinding Class
Defines aggregations across a specified number of values before and/or after the current value.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v20.1.dll
NuGet Package: DevExpress.Web
Declaration
Remarks
The following code snippet illustrates how to bind a PivotGrid field to the result of the Moving Calculation.
<dx:PivotGridField ID="MovingCalculation" Area="DataArea" AreaIndex="0" Name="MovingCalculation">
<DataBindingSerializable>
<dx:MovingCalculationBinding PartitioningCriteria="ColumnValue" Direction="AcrossThenDown" SummaryType="Average" PreviousValuesCount="1"
NextValuesCount="1" >
<SourceSerializable>
<dx:DataSourceColumnBinding ColumnName="Extended_Price" />
</SourceSerializable>
</dx:MovingCalculationBinding>
</DataBindingSerializable>
<CellFormat FormatString ="c2" FormatType="Numeric"></CellFormat>
</dx:PivotGridField>
Note
The complete example is available in the GitHub repository: ASP.NET Web Forms Pivot Grid - How to Create Field Calculation Bindings.
For more information, see Data Binding API.
Inheritance
See Also