1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| Sub Trier_List_View(LV As ListView, ByVal ColumnHeader As MSComctlLib.ColumnHeader)
'TRIE UNE LISTVIEW EN FONCTION DE LA COLONNE CLIQUEE
LV.SortOrder = lvwAscending
Select Case ColumnHeader
Case "ID"
LV.SortKey = 0
Case "Date"
LV.SortKey = 1
Case "Client"
LV.SortKey = 2
Case "Contact"
LV.SortKey = 3
Case "Priorité"
LV.SortKey = 4
Case "Enr. par"
LV.SortKey = 5
Case "Dépt."
LV.SortKey = 6
Case "Dest."
LV.SortKey = 7
Case "Intervenant"
LV.SortKey = 8
Case "Statut"
LV.SortKey = 9
Case "Commentaires"
LV.SortKey = 10
Case Else
Exit Sub
End Select
LV.Sorted = True
End Sub |