Results 1 to 1 of 1

Thread: [RESOLVED] Is it possible to sort ListViewItems from a particular ListViewGroup?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2006
    Posts
    746

    Resolved [RESOLVED] Is it possible to sort ListViewItems from a particular ListViewGroup?

    I have a ListView containing several groups. I don't sort the Listview because I prefer to add the ListViewItems per group in a particular order.

    However, there's one particular ListViewGroup that I WOULD like sorted alphabetically. Is this (easily) possible?

    Edit: I suppose the easiest way is to sort the data before putting it in the Listview but that data comes from WMI and WQL doesn't support sorting. There are two fields (NAME and PATH) so what's the best method for sorting these? A Generic Collection?

    Edit2: Why is it I always find the answer to my question 5 minutes after posting them? Just discovered the rather wonderful SortedList object
    Last edited by Ginolard; Nov 25th, 2009 at 09:09 AM.
    ManagePC - the all-in-one PC management and inventory tool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width