Hello
I have a databound grid that has a column containings integer numerical values as per the following example:
- 5
- 3
- -1
- 2
- -1
- 1
- 4
and I wish to sort this grid following the following rule:
for ascending sort I wish to have:
- 1
- 2
- 3
- 4
- 5
- -1
- -1
and for descending sort:
- 5
- 4
- 3
- 2
- 1
- -1
- -1
In other words I wish to have the negativ values always at the end and the positiv values at the top in ascending or descending order.
I have looked at the custom sorting documentation but I do not understand how to set the e.sortresult property to achieve this sort behavior
Thanks in advance
Best Regards
Pierre-Jean