Skip to main content
Tag

PivotGridField.ExpressionFieldName Property

Gets the name by which the field is referred to in unbound expressions.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

[Browsable(false)]
public string ExpressionFieldName { get; }

Property Value

Type Description
String

A String representing the name by which the field is referred to in unbound expressions.

Remarks

Important

This member is not supported in Optimized, OLAP, and Server modes. Use PivotGridField.Name instead.

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