Hi there, I have a routine which sorts a column on a ListView, but it only sorts the values in alphabetical order.
Could you please tell me how would I make it work with columns containing numbers (and not sorting them as "string")?Code:Public Sub SortListView(ByVal lvw As MSComctlLib.ListView, _ ByVal colHdr As MSComctlLib.ColumnHeader) '--set the sortkey to the column header's index - 1 lvw.SortKey = colHdr.Index - 1 lvw.Sorted = True '--toggle the sort order between ascending & descending lvw.SortOrder = 1 Xor lvw.SortOrder End Sub
Thanks in advance.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks