Mixing default and custom sorting in multisort scenario
Product Version | Product | Author | Last modified |
---|---|---|---|
Q3 2012 SP1 | RadControls for WinForms | Stefan Stefanov | 25 Dec 2012 |
Problem
This example shows how to use both the default and custom sorting to sort your grid. In the below grid all columns prior Column2 are sorted with the default sort mechanism, while for Column2 itself, we will use custom sorting.
Solution
To achieve this, all you need to do is to set the EnableCustomSorting property of RadGridView to true and implement the desired sorting logic in the CustomSorting event handler, while keeping the default sorting for the rest of the cases: