PivotGridField.ExpressionFieldName Property
Gets the name by which the field is referred to in unbound expressions.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.PivotGrid, DevExpress.Wpf.PivotGrid
Declaration
Property Value
Type | Description |
---|---|
String | A String representing the name by which the field is referred to in unbound expressions. |
Remarks
When creating unbound expressions in code, use the ExpressionFieldName property to refer to a field. The sample below shows how to do it:
fieldProfit.UnboundType = FieldUnboundColumnType.Object;
fieldProfit.UnboundExpression = "Iif(" + fieldSalesAmount.ExpressionFieldName + " = 0, 0, " + fieldMargin.ExpressionFieldName + " / " + fieldSalesAmount.ExpressionFieldName + ")";
To learn more, see Unbound Fields.
See Also