How to reverse items in WPF Datagrid?
Posted
by irf1x
on Stack Overflow
See other posts from Stack Overflow
or by irf1x
Published on 2010-03-18T15:45:36Z
Indexed on
2010/03/19
2:01 UTC
Read the original article
Hit count: 300
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.
© Stack Overflow or respective owner