PivotCustomFieldSortEventArgs.Result Property
Gets or sets the result of a custom comparison.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v21.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying the custom comparison’s result. |
Remarks
In the PivotGridControl.CustomFieldSort event handler set the result of the custom comparison operation as follows:
- -1 if the Value1 should be placed before the Value2 when values are sorted in ascending order. When values are sorted in descending order, the first value is after the second value.
- 1 if the Value1 should be placed after the Value2 when values are sorted in ascending order. When values are sorted in descending order, the first value is placed before the second value.
- 0 to indicate that the values are equal. The rows are grouped into one field value.
Note
Values are sorted before grouping. If the values are equal (the e.Result is set to 0), they are in the same group.
Important
Set the e.Handled property to true to finalize the comparison and use the e.Result value. Otherwise, the default comparison is in effect and e.Result is ignored.
See Also