Results 1 to 5 of 5
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ordering item in listview (2000 sr-1)

    Possible to ordering items in listview?
    for example have 6 item ordering by desc from col 2

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ordering item in listview (2000 sr-1)

    Do you really mean a ListView control, or a ListBox?

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ordering item in listview (2000 sr-1)

    ListView...

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ordering item in listview (2000 sr-1)

    You can use something like this:
    <code>
    With Me.ListView1
    .SortKey = 1 ' index starts at 0
    .SortOrder = 1 ' lvwDescending
    .Sorted = True
    End With
    </code>
    See ListView Control for the official documentation on the ListView control.

  5. #5
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ordering item in listview (2000 sr-1)

    tks...
    Good link from MS!

Posting Permissions

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