Skip to main content

GridCustomSortEventArgs.Result Property

Gets the result of the custom comparison.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public int Result { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the custom comparison’s 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 grid places the first data item above the second item in ascending sort mode and below the second item in descending sort mode.
1 The grid 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 grid 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 GridCustomSortEventArgs class description for more information and an example.

See Also