listview 排序

时间:2013-01-27 05:25:43
【文件属性】:

文件名称:listview 排序

文件大小:42KB

文件格式:RAR

更新时间:2013-01-27 05:25:43

c# listview sort

ListView myListView = (ListView)sender; // Determine if clicked column is already the column that is being sorted. if ( e.Column == lvwColumnSorter.SortColumn ) { // Reverse the current sort direction for this column. if (lvwColumnSorter.Order == SortOrder.Ascending) { lvwColumnSorter.Order = SortOrder.Descending; } else { lvwColumnSorter.Order = SortOrder.Ascending; } } else { // Set the column number that is to be sorted; default to ascending. lvwColumnSorter.SortColumn = e.Column; lvwColumnSorter.Order = SortOrder.Ascending; } // Perform the sort with these new sort options. myListView.Sort();


【文件预览】:
ListViewColumnSorter_demo
----ListViewSorter.csproj.user(2KB)
----ListViewSorter.sln(911B)
----Form1.cs(9KB)
----bin()
--------Debug()
--------Release()
----obj()
--------Debug()
--------Release()
----_UpgradeReport_Files()
--------UpgradeReport.xslt(12KB)
--------UpgradeReport_Plus.gif(71B)
--------UpgradeReport.css(3KB)
--------UpgradeReport_Minus.gif(69B)
----Backup()
--------ListViewSorter.csproj.user(2KB)
--------ListViewSorter.sln(924B)
--------Form1.cs(9KB)
--------App.ico(1KB)
--------Form1.resx(17KB)
--------ListViewSorter.csproj(5KB)
--------ColumnSorter.cs(5KB)
--------AssemblyInfo.cs(2KB)
----ReadMe.txt(25B)
----App.ico(1KB)
----Form1.resx(17KB)
----UpgradeLog.XML(2KB)
----ListViewSorter.csproj(4KB)
----ColumnSorter.cs(5KB)
----ListViewSorter.suo(11KB)
----AssemblyInfo.cs(2KB)

网友评论