ListView Custom Sorting and repositioning later

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I have a ListView with a custom ListViewItemSorter assigned. After I add all
the items I assign the sorter and everything is sorted fine. This works the
way I want.

Now I want the user to be able to move items within the ListView but they're
always resorted. If I try and set ListView.ListViewItemSorter = null then
the items are no longer sorted in the original order.

Any ideas how to work around this?

-Joe
 
Here's what I did - I set the ListViewItemSorter before adding the items and
I set it to null in the Click event of one of the buttons that moves the
items.
 
Back
Top