Windows Develop Bookmark and Share   
 index > Windows Forms General > ListViewItemSorter stops working after introducing groups?
 

ListViewItemSorter stops working after introducing groups?

Hi all,

For some unknown reason my ListViewItemSorter fails to sort my listviewitems after introducting groups.

When adding items to the ListView I am calling Begin and End update as well as setting ShowGroups to true and false (before and after) but it makes no difference what so ever.

When I click on a column header to sort, it calls my IComparer with the listviewitems to compare but doesn't accept the return value.

Has anyone got any idea why?

Regards
gRoberts  Tuesday, October 07, 2008 10:52 AM
Just to add to this... When I click on the column header, it is sorting the data (as I can see this in quickwatch) but it is not updating the UI.
gRoberts  Tuesday, October 07, 2008 11:10 AM

Hi gRoberts,

Would you please provide some of your code? It will be better for us to help you find the cause.

I also suggest you digest the sample code MSDN has provided first, and see whether it helps you.

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Thursday, October 09, 2008 10:19 AM

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

You can use google to search for other answers

Custom Search

More Threads

• Hiding a tab in a Tab Control
• Multiple AutoComplete Sources
• Display some row with different color in DataGridView
• WebBrowser.Navigate IE7 pdf adobe not run in same window
• Image Property
• Strange text characters - how do I get rid of them?
• Array of form components?
• Searching fitting data in datagridview
• Textbox, Listview and Keypress event
• How can i get the index of the SelectedRow in a DataGridView