Back to Devexpress

PivotGridField.ExpressionFieldName Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridfield-cdb23e19.md

latest2.1 KB
Original Source

PivotGridField.ExpressionFieldName Property

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

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

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

Property Value

TypeDescription
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:

csharp
fieldProfit.UnboundType = FieldUnboundColumnType.Object;
fieldProfit.UnboundExpression = "Iif(" + fieldSalesAmount.ExpressionFieldName + " = 0, 0, " + fieldMargin.ExpressionFieldName + " / " + fieldSalesAmount.ExpressionFieldName + ")";

To learn more, see Unbound Fields.

See Also

PivotGridField Class

PivotGridField Members

DevExpress.Xpf.PivotGrid Namespace