Back to Devexpress

FieldValueElementData.Field Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-813adfd1.md

latest2.8 KB
Original Source

FieldValueElementData.Field Property

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

Declaration

csharp
public override PivotGridField Field { get; }
vb
Public Overrides ReadOnly Property Field As PivotGridField

Property Value

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

wpf-pivot-grid-create-context-menu-for-field-values/CS/WpfPivotGrid_CustomMenu/MainWindow.xaml.cs#L36

csharp
menuInfo.FieldValueElementData.Value != null &&
    menuInfo.FieldValueElementData.Field != null)
{

wpf-pivot-grid-create-context-menu-for-field-values/VB/WpfPivotGrid_CustomMenu/MainWindow.xaml.vb#L29

vb
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

FieldValueElementData Class

FieldValueElementData Members

DevExpress.Xpf.PivotGrid Namespace