|
-
Mar 26th, 2008, 01:08 PM
#1
Thread Starter
Member
[2005] how to sort a list view
hi
I've a listview with filenames loaded from a database.
after I load the file names to the listview I want to sort the listview first by TYPE and afterwards by filename.
how can it be done
thanks
-
Mar 26th, 2008, 01:36 PM
#2
Fanatic Member
Re: [2005] how to sort a list view
Hi Yossilb
I think that it would be a lot easier to do an Order By when querying the data than through code.
CLanguage; 
IF Post = HelpFull Then
RateMe
Else
Say("Shut UP")
End If
DotNet rocks
VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?
-
Mar 26th, 2008, 01:37 PM
#3
Re: [2005] how to sort a list view
you would have to implement your own sorting mechanism. Here's an example but it's single column only as far as i know. U would have to adapt it to sort by multiple columns.
Sort Listview
-
Mar 26th, 2008, 01:44 PM
#4
Re: [2005] how to sort a list view
 Originally Posted by Clanguage
Hi Yossilb
I think that it would be a lot easier to do an Order By when querying the data than through code.
I agree with Clanguage. Sort the unlaying data before loading the ListView.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|