WindowExpressionBinding Class
Specifies a custom string expression with window functions to calculate values. Used as a PivotGrid’s field calculation databinding in Optimized mode.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
Remarks
The following example shows how to set up WindowExpressionBinding
:
<dxpg:PivotGridControl.Fields>
<dxpg:PivotGridField
Area="DataArea"
AreaIndex="2"
Caption="Total"
Name="fieldWindowExpression">
<dxpg:PivotGridField.DataBinding>
<dxpg:WindowExpressionBinding
Expression="Total(Sum([Extended Price]))" PartitioningCriteria="ColumnValueAndRowParentValue"
<dxpg:WindowExpressionBinding.Source>
<dxpg:DataSourceColumnBinding ColumnName="Extended Price" />
</dxpg:WindowExpressionBinding.Source>
</dxpg:WindowExpressionBinding>
</dxpg:PivotGridField.DataBinding>
</dxpg:PivotGridField>
</dxpg:PivotGridControl.Fields>
See the following example for more Data Binding usage examples:
For more information, review the following topic: Optimized Mode and Data Binding API.
Inheritance
See Also