In my project i have a need to sort the datagrid column but if a certain condition holds true for an item it should be at the top(first item) of the sorted list. otherwise if that condition does not hold for any item it should be simple sorted list.
I tries using sorting event and defining iComparer but i could not manage to get the desired behavior. What code will i put in Icomparer so that it can return the item with condition a true at the top and rest item in sorted fashion.
please can someone help