TreeListCustomSortEventArgs.Result Property
Returns the result of the custom comparison.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.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 Tree |
1 |
The Tree |
0 |
Indicates that the data items are equivalent according to the comparison condition. The Tree |
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.