Gets or sets the result of a custom comparison.
The result of a custom comparison.
To apply custom sort or group operations, compare two rows and assign the result of the comparison to the Result property. The FirstValue and SecondValue parameters identify the values of these rows in the FieldName column.
-1 to position the first row above the second row when data is sorted in ascending order. When data is sorted in descending order, the GridControl positions the first row below the second row.
1 to position the first row below the second row when data is sorted in ascending order. When data is sorted in descending order, the GridControl positions the first row above the second row.
0 to indicate that the rows are equal. In this case, the GridControl arranges rows according to their indices in a data source.
When you execute a command bound to the GridControl.CustomColumnGroupCommand property, set the result as follows:
- 0 to combine the rows into the same group.
- 1 (or -1) to place the rows in different groups.