How to reverse items in WPF Datagrid?
- by irf1x
If i have DataGrid which looks like:
Col 1 Col 2
------- -------
1 a
2 b
3 c
... ...
n n
Can the order be reversed easily without sorting? So that n is first, and 1 is last. I have custom sort implemented from this article, but sorting the same column twice in a row calls sorting function twice (which is slow), so just reversing the order should be faster and have the same effect.