reverse the listview Item
-
Hi all, I just want to have a feature to reverse the order of some of my selected ListViewItems. for example, I would like to reverse the order of Items50 - Items 100 only. Does anyone know the simple way to do this? Thanks.
azusakt wrote:
I would like to reverse the order of Items50 - Items 100 only. Does anyone know the simple way to do this? Thanks.
AFAIK, there isn't an easy way to do this. I'm guessing you'd probably have to remove all the items from the ListView, then re-add them in the order you want them to appear.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Hi all, I just want to have a feature to reverse the order of some of my selected ListViewItems. for example, I would like to reverse the order of Items50 - Items 100 only. Does anyone know the simple way to do this? Thanks.
Hi! You can achieve this quite easily by writing a class to assign to the ListView's
ListViewItemSorter
property. Within your LVItemSorter you can sort to your heart's desire without having to remove and re-insert items.Regards, mav -- Black holes are the places where God divided by 0...