Home All Groups Group Topic Archive Search About

How to specify the sorting column in Listview?

Author
14 Mar 2006 2:10 PM
yxq
Hello,
By default, when set the listview's property "Sorting=Descending", the
listview will sort the items base on the string in first column(column(0))
while adding items, how to specify listview sort the items base on other
columns?

Thank you

Author
14 Mar 2006 2:19 PM
Armin Zingler
"yxq" <ga***@163.net> schrieb
> Hello,
> By default, when set the listview's property "Sorting=Descending",
> the listview will sort the items base on the string in first
> column(column(0)) while adding items, how to specify listview sort
> the items base on other columns?


See "remarks" section at
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWindowsFormsListViewClassSortTopic.asp


Armin
Author
14 Mar 2006 11:24 PM
yxq
Thank you very much.

Show quoteHide quote
"Armin Zingler" <az.nospam@freenet.de> дÈëÏûÏ¢ÐÂÎÅ:OQq7HL3RGHA.4***@TK2MSFTNGP12.phx.gbl...
> "yxq" <ga***@163.net> schrieb
>> Hello,
>> By default, when set the listview's property "Sorting=Descending",
>> the listview will sort the items base on the string in first
>> column(column(0)) while adding items, how to specify listview sort
>> the items base on other columns?
>
>
> See "remarks" section at
> http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWindowsFormsListViewClassSortTopic.asp
>
>
> Armin