Skip to main content
A newer version of this page is available. .

WindowExpressionBinding Class

Defines the calculation that uses a custom string expression with window functions.

Namespace: DevExpress.Web.ASPxPivotGrid

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

Declaration

public class WindowExpressionBinding :
    WindowExpressionBindingBase

Remarks

The following code snippet illustrates how to bind a PivotGrid field to the result of the Window Expression Calculation.

  <dx:PivotGridField ID="fieldWindowExpression" Area="DataArea" AreaIndex="7"  Name="fieldWindowExpression" Caption="WindowExpression" >
     <DataBindingSerializable>
         <dx:WindowExpressionBinding Expression="Total(Sum([Extended Price]))" PartitioningCriteria="ColumnValueAndRowParentValue">
             </dx:WindowExpressionBinding>
     </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.

Implements

DevExpress.XtraPivotGrid.IDesignerContextProvider
DevExpress.PivotGrid.DataBinding.IExpressionBinding
See Also