Back to Devexpress

FieldValueElementData.DataField Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-4d6f971e.md

latest2.5 KB
Original Source

FieldValueElementData.DataField Property

Gets the data 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 PivotGridField DataField { get; }
vb
Public ReadOnly Property DataField As PivotGridField

Property Value

TypeDescription
PivotGridField

The Pivot Grid field to which the field value cell belongs.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataField 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-show-top-n-values-in-context-menu/CS/ContextMenuToShowTopN_Example/MainWindow.xaml.cs#L81

csharp
f.SortOrder = FieldSortOrder.Descending;
f.SortByField = valueItem.DataField;
f.SortByConditions.Clear();

wpf-pivot-grid-show-top-n-values-in-context-menu/VB/ContextMenuToShowTopN_Example/MainWindow.xaml.vb#L78

vb
f.SortOrder = FieldSortOrder.Descending
f.SortByField = valueItem.DataField
f.SortByConditions.Clear()

See Also

FieldValueElementData Class

FieldValueElementData Members

DevExpress.Xpf.PivotGrid Namespace