点击Listview列头排序

Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
   ListView1.Sorted = True
   ListView1.SortKey = ColumnHeader.Index - 1
   If ListView1.SortOrder = lvwAscending Then
        ListView1.SortOrder = lvwDescending
   Else
        ListView1.SortOrder = lvwAscending
   End If
End Sub

posted on 2016-04-12 14:15  可爱的春哥  阅读(284)  评论(0编辑  收藏  举报

导航