TreeListCustomSortEventArgs.Result Property
Returns the result of the custom comparison.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public int Result { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The custom comparison result. |
Remarks
Use the Result
property to set the result of the custom comparison of the two data items being processed. To define the column’s sort algorithm, set the Result
property to one of the following values:
Value | Description |
---|---|
-1 |
The TreeList places the first data item above the second item in ascending sort mode and below the second item in descending sort mode. |
1 |
The TreeList places the first data item below the second item in ascending sort mode and above the second item in descending sort mode. |
0 |
Indicates that the data items are equivalent according to the comparison condition. The TreeList sorts them based on their indices in the data source. |
Set the Handled property to true
to indicate that the current comparison operation is handled. If the value is set to false
, the component ignores the result of the custom comparison and uses the default mechanism to compare item values.
Refer to the TreeListCustomSortEventArgs class description for more information and an example.