
How to sort on a listview column header?
In VB6 clicking the listview header caused the column to be resorted in
ascending or descending sequence.
Like this:
If lvwDRIReconcile.SortOrder = lvwAscending Then
lvwDRIReconcile.SortKey = ColumnHeader.Index - 1
lvwDRIReconcile.Sorted = True
lvwDRIReconcile.SortOrder = lvwDescending
Else
lvwDRIReconcile.SortKey = ColumnHeader.Index - 1
lvwDRIReconcile.Sorted = True
lvwDRIReconcile.SortOrder = lvwAscending
End If
How does one do this in VB.NET?
Thanks,
Dean