wpf-devexpress-dot-xpf-dot-pivotgrid-dot-sortbycondition.md
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
[DefaultValue(null)]
public PivotGridField Field { get; set; }
<DefaultValue(Nothing)>
Public Property Field As PivotGridField
| Type | Default | Description |
|---|---|---|
| PivotGridField | null |
A PivotGridField object that represents the field to which the condition corresponds.
|
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.
{
if (f.SortByConditions[i].Field != conditions[i].Key ||
f.SortByConditions[i].Value != conditions[i].Value)
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