corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-1a45b783.md
Gets the field’s name in unbound expressions.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.PivotGrid.v25.2.Core.dll
NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
[Browsable(false)]
public string ExpressionFieldName { get; }
<Browsable(False)>
Public ReadOnly Property ExpressionFieldName As String
| Type | Description |
|---|---|
| String |
A String representing the field’s name in unbound expressions.
|
Note
This member is not supported in Optimized, OLAP, and Server modes. Use ExpressionDataBinding/OlAPExpressionBinding instead.
The examples below show how to create unbound fields in code and supply them with data using expressions. Note that the ExpressionFieldName property is utilized to use other fields within an expression.
Example 1
Example 2
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExpressionFieldName property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-pivot-grid-display-kpi-graphics/CS/WindowsFormsApp_RegularDataSourceKPI/Form1.cs#L20
string.Format("(Iif(Sum([{0}])<100000,-1,Iif(Sum([{0}])<150000,0,1)))",
fieldExtendedPrice.ExpressionFieldName));
// Sets the Data Header Area within which the "Status" Field can be positioned.
winforms-pivot-grid-display-kpi-graphics/VB/WindowsFormsApp_RegularDataSourceKPI/Form1.vb#L22
' Sets a column's data binding and specifies an expression.
KPIField.DataBinding = New ExpressionDataBinding(String.Format("(Iif(Sum([{0}])<100000,-1,Iif(Sum([{0}])<150000,0,1)))", fieldExtendedPrice.ExpressionFieldName))
' Sets the Data Header Area within which the "Status" Field can be positioned.
See Also