PivotCustomFieldSortEventArgs.Result Property
In This Article
Gets or sets the result of a custom comparison.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.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.
Important
Set the e.
See Also