Back to Devexpress

SortByCondition.Field Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-sortbycondition.md

latest2.9 KB
Original Source

SortByCondition.Field Property

Gets or sets the field to which the condition corresponds. This is a dependency property.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
[DefaultValue(null)]
public PivotGridField Field { get; set; }
vb
<DefaultValue(Nothing)>
Public Property Field As PivotGridField

Property Value

TypeDefaultDescription
PivotGridFieldnull

A PivotGridField object that represents the field to which the condition corresponds.

|

Remarks

The field value represented by the condition is specified via the SortByCondition.Value property.

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-show-top-n-values-in-context-menu/CS/ContextMenuToShowTopN_Example/MainWindow.xaml.cs#L103

csharp
{
    if (f.SortByConditions[i].Field != conditions[i].Key ||
        f.SortByConditions[i].Value != conditions[i].Value)

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

vb
For i As Integer = 0 To conditions.Count - 1
    If f.SortByConditions(i).Field IsNot conditions(i).Key OrElse f.SortByConditions(i).Value IsNot conditions(i).Value Then
        Return False

See Also

Value

SortByCondition Class

SortByCondition Members

DevExpress.Xpf.PivotGrid Namespace