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.v20.1.dll

Declaration

[Browsable(false)]
public string ExpressionFieldName { get; }
<Browsable(False)>
Public ReadOnly Property ExpressionFieldName As String

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