ListView Sorting
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I have a listview (property View is "Details"). I set the sorting property true. Is it possible that the sorting is made after the second column and not the first one (like it does now)? Thanks!
Yes, it's possible. But it's not easy. You have to handle the
ColumnClick
event of theListView
, provide you own sorting mechanism... But wait, actually it's easy :) Simply use theListViewSortManager
class from the following article: http://www.codeproject.com/cs/miscctrl/lvsortmanager.asp[^] I hope it helps! -- LuisR
Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005