wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-813adfd1.md
Gets the field to which the field value cell belongs.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public override PivotGridField Field { get; }
Public Overrides ReadOnly Property Field As PivotGridField
| Type | Description |
|---|---|
| PivotGridField |
A PivotGridField object that is a Pivot Grid field.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Field 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.
menuInfo.FieldValueElementData.Value != null &&
menuInfo.FieldValueElementData.Field != null)
{
Dim menuInfo As PivotGridFieldValueMenuInfo = TryCast(Me.pivotGrid.GridMenu.MenuInfo, PivotGridFieldValueMenuInfo)
If menuInfo IsNot Nothing AndAlso menuInfo.FieldValueElementData IsNot Nothing AndAlso menuInfo.FieldValueElementData.Value IsNot Nothing AndAlso menuInfo.FieldValueElementData.Field IsNot Nothing Then
Dim field As PivotGridField = menuInfo.FieldValueElementData.Field
See Also