Skip to main content

DifferenceBinding Class

Defines the difference calculation between values across a window.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v21.2.dll

Declaration

public class DifferenceBinding :
    DifferenceBindingBase

Remarks

The following code snippet illustrates how to bind a PivotGrid field to the result of the Difference window calculation.

View Example

```xml
 <dx:PivotGridField ID="Difference" Area="DataArea" AreaIndex="0"  Name="Difference">
    <DataBindingSerializable>
        <dx:DifferenceBinding DifferenceType="Absolute" Target="Previous" Direction="AcrossThenDown" PartitioningCriteria="ColumnValue">
            <SourceSerializable>
                <dx:DataSourceColumnBinding ColumnName="Extended_Price" />
            </SourceSerializable>
            </dx:DifferenceBinding>
    </DataBindingSerializable>
    <CellFormat FormatString ="c2" FormatType="Numeric"></CellFormat>
</dx:PivotGridField>
```

For more information, see Data Binding API.

Implements

DevExpress.XtraPivotGrid.IDesignerContextProvider
See Also