Back to Devexpress

TreeListCustomSortEventArgs.Result Property

blazor-devexpress-dot-blazor-dot-treelistcustomsorteventargs-b2b640e8.md

latest1.9 KB
Original Source

TreeListCustomSortEventArgs.Result Property

Returns the result of the custom comparison.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public int Result { get; set; }

Property Value

TypeDescription
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:

ValueDescription
-1The TreeList places the first data item above the second item in ascending sort mode and below the second item in descending sort mode.
1The TreeList places the first data item below the second item in ascending sort mode and above the second item in descending sort mode.
0Indicates 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 additional information and an example.

See Also

TreeListCustomSortEventArgs Class

TreeListCustomSortEventArgs Members

DevExpress.Blazor Namespace