Skip to main content

PivotCustomFieldListSortEventArgs.Result Property

Gets or sets the result of a custom comparison.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public int? Result { get; set; }

Property Value

Type Description
Nullable<Int32>

An integer or null value that specifies the custom comparison’s result.

Remarks

Handle the PivotGridControl.CustomFieldListSort event to sort fields and folders located in the Field List. Use the Result property to set the result of the custom comparison of the two fields or folders being processed. The fields being processed are specified by the PivotCustomFieldListSortEventArgs.Field1 and PivotCustomFieldListSortEventArgs.Field2 properties. The folders being compared are specified by the PivotCustomFieldListSortEventArgs.Caption1 and PivotCustomFieldListSortEventArgs.Caption2 properties.

The Result property compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

  • Set the value to -1 to make the current object precede the compared object in the sort order.
  • Set the value to 0 to leave the current object in the same position as the compared object.
  • Set the value to 1 to make the current object follow the compared object in the sort order.
See Also