ListViewGroup not sorting correctly

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2009-07-07T05:18:51Z Indexed on 2010/04/06 17:03 UTC
Read the original article Hit count: 261

Filed under:
|
|
|
|

I'm using a ListView control in a C# WinForms application. Items in the list are added to a ListViewGroup (in this case, grouping by country). The one thing that isn't working as expected is that the column sorting appears to be strange.

I've hooked into the ListViewItemSorter property of the ListView and everything sorts perfectly except when the country column is sorted in descending order (that is, Z-A). Regardless of how the list sort occurs the groups show in ascending order.

Can anyone give me a nudge in the right direction?

EDIT: FWIW, .NET 3.5 on Vista.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET