按一列或多列对Listview排序 [英] Sort Listview by one or more columns
本文介绍了按一列或多列对Listview排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我有一个包含以下列的Listview。
名称,XMPP ID,状态
状态将具有这些值0 =离线; 1 =离开; 2 =忙碌; 4 =可用
我想按存在状态对列表视图进行排序,然后命名...
例如。它应该像这样排序...
Hi I have a Listview that has the following columns.
Name, XMPP Id, Presence Status
The presence status will have these values 0 = Offline; 1 = Away; 2 = Busy; 4 = Available
I want to sort my listview by Presence Status, and then Name...
FOr Eg. It should Sort Like this...
Arun : Available
Binu : Available
Cindrella : Available
Antony : Busy
Binoj : Busy
Aman : Away
Bibin : Away
Arthur : Offline
Benton : Offline
Benzel : Offline
Carol : Offline
etc...
推荐答案
看看这里:
ListView.Sort方法 [ ^ ]
按列排序ListView项目Windows窗体 [ ^ ]
如何:对ListView项进行排序 [ ^ ]
我希望它会有所帮助;)
Have a look here:
ListView.Sort Method[^]
Sorting ListView Items by Column Using Windows Forms[^]
How to: Sort ListView Items[^]
I hope it would be helpful ;)
这篇关于按一列或多列对Listview排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文