Skip to main content
A newer version of this page is available. .
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.v18.2.dll

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

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