|
-
Aug 3rd, 2002, 09:43 PM
#1
Thread Starter
Lively Member
Sorting Listview quickly
Does anyone have any suggestion on how to make a listview sort quickly?
I loaded data from an Access db, and whenever I try to sort by clicking the Option Button, it takes a while.
-
Aug 5th, 2002, 11:09 AM
#2
Fanatic Member
have you tried turning the listview property 'Sorted' to true?
-
Aug 5th, 2002, 12:17 PM
#3
Frenzied Member
I can't think of any other way than you order them in Database and then load...
-
Aug 5th, 2002, 10:01 PM
#4
Thread Starter
Lively Member
Sorting Listview Quickly
Yes...Geespot, I have the Sorted property checked
Moin, will that make it sort faster?
-
Aug 6th, 2002, 01:31 AM
#5
Frenzied Member
Certainly it would.. but. then you could only order the things when you load them from table....so it would do bad rather than good.
Is your listview multicolumn? and you want to sort on any column???????
-
Aug 6th, 2002, 04:11 AM
#6
I did something similar with a treeview. When I wanted to sort it, I just threw out all the information, did another call to the database and repopulated it. If you turn off window redraw first it helps with the speed.
-
Aug 8th, 2002, 08:45 PM
#7
Thread Starter
Lively Member
Sorting Listview Quickly
Moin..I have 5 columns, and I would like to sort it on any column
-
Aug 11th, 2002, 08:01 AM
#8
Frenzied Member
Then do it the way I mentioned earlier.. Clear the listview send a command to database to order on your desired field and re-populate...
But I doubt about its usefulness
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
|