Results 1 to 2 of 2

Thread: sorting listview item

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2004
    Posts
    108

    sorting listview item

    how to sorting the list view item ???

    i have a list view that have the following item

    Name hobby Age
    a basketball 20
    b badminton 21
    a tennis 20
    c basketball 20


    how can i arrange the sequence or the listview item

    example if i click at the name and all the name a will be in the first place example

    Name hobby Age
    a
    a
    b
    c

    if i click at the hobby the hobby will arrange like below

    Name hobby Age
    basketball
    basketball
    badminton
    tennis

    can the list view do that ???
    if yes can someone give me a sample coding

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    You will find clear instructions in MSDN Help under

    ListViewItemSorter
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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