Advertisement
4_2005-2006 OLE/ COM/ DCOM/ Active-X #150561

ListView Column Sort Funciton

Easily Sort Any ListView Column Ascending and Descending.

AI

KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Quellcode
original-source
Public Sub SortListView(ctlListView As ListView, intColulunHeaderIndex As Integer)
ctlListView.Sorted = True
ctlListView.SortKey = intColulunHeaderIndex - 1
If ctlListView.SortOrder = lvwAscending Then
   ctlListView.SortOrder = lvwDescending
Else
   ctlListView.SortOrder = lvwAscending
End If
End Sub
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine