aspnet-devexpress-dot-web-dot-aspxpivotgrid-bbd03090.md
Defines a calculation based on a string expression.
Namespace : DevExpress.Web.ASPxPivotGrid
Assembly : DevExpress.Web.ASPxPivotGrid.v25.2.dll
NuGet Package : DevExpress.Web
public class ExpressionDataBinding :
ExpressionBindingBase
Public Class ExpressionDataBinding
Inherits ExpressionBindingBase
You can assign an expression to a Pivot Grid field to calculate field values based on your formula or an aggregate function. These fields are called calculated fields.
Follow the steps below to create a calculated field in Optimized and Server modes:
ExpressionDataBinding instance and pass the expression in its constructor as a parameter.Note
Use OLAPExpressionBinding in OLAP mode.
The following code snippet illustrates how to display the minimum sales in a product category.
<dx:PivotGridField ID="fieldExpressions" Area="DataArea" AreaIndex="5" Name="fieldExpressions" Caption="Expressions" >
<DataBindingSerializable>
<dx:ExpressionDataBinding Expression="Min([Extended Price])" />
</DataBindingSerializable>
</dx:PivotGridField>
See the following topic for more information: Data Binding API.
DevExpress.XtraPivotGrid.IDesignerContextProvider
DevExpress.PivotGrid.DataBinding.IExpressionBinding
Object DataBindingBase ExpressionBindingBase ExpressionDataBinding
See Also