Results 1 to 5 of 5

Thread: how to sort a listview on a different column than was clicked *RESOLVED*

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982

    how to sort a listview on a different column than was clicked *RESOLVED*

    I understand sorting on columns using the IComparer.
    Can anyone tell me how to sort on a different column than was clicked.
    Last edited by davidrobin; Apr 5th, 2004 at 07:52 AM.


    Things I do when I am bored: DotNetable

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Even though I searched the forums I did not find a specific answer to this one.

    I have since sorted it out. You have to write a seperate class for each sort method which is basically each column.


    Things I do when I am bored: DotNetable

  3. #3
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    if the data is pulled from a database would it be easier to simply re-query and use an ORDER BY clause?

    I haven't fooled with the iCompare yet so I don't know if that difficult or not.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    I thought is was hard but (like anything) it isn't that hard once you know.

    My data isn't actually pulled from a database, its pulled from a number of text files.


    Things I do when I am bored: DotNetable

  5. #5
    Addicted Member craigreilly's Avatar
    Join Date
    Jul 2004
    Location
    Scottsdale, AZ
    Posts
    188
    Does anyone have this CODE for sorting by column clicked on a Listview in VB.NET ???
    Thanks.

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