Gets or sets the result of a custom comparison.
An integer value that specifies the result.
Use the Result property to set the result of the custom comparison of the two nodes being processed. The compared values are returned by the TreeListCustomColumnSortEventArgs.Value1 and TreeListCustomColumnSortEventArgs.Value2 properties.
When handling the TreeListView.CustomColumnSort event, the result must be set as follows:
- Set Result to -1, if the first node should be positioned above the second node when data is sorted in ascending order. When data is sorted in descending order, the first node will be positioned below the second node.
- Set Result to 1 if the first node should be positioned below the second node when data is sorted in ascending order. When data is sorted in descending order, the first node will be positioned above the second node.
- Set Result to 0 to indicate that the nodes are equal. In this case, the nodes will be arranged within the View according to their position in a data source.