CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2001
    Posts
    22

    Sorting ListItems or subitems

    1
    13
    1A
    101
    1111
    2
    20
    231dA
    561
    6541

    If the list View has these values as listItems or Subitems,
    how to sort these values as Shown in bellow when click on the column headers?


    1
    1A
    2
    13
    20
    101
    231dA
    561
    1111
    6541


  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: Sorting ListItems or subitems

    generally you must pad the string numbers (data in listview is alpha - not numeric) with 0's before you sort and then remove leading 0's if desired after sorting



  3. #3
    Join Date
    Jul 2001
    Posts
    22

    Re: Sorting ListItems or subitems

    could u please explain with an example

    thank u


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

Featured