hello everyone

the listview control in visual basic can sort on any column simply. my problem is that it behaves like it is sorting strings. i cannot get it to correctly sort on numbers or dates.

eg. it sorts numbers 1 to 23 like this....

1
10
11
12
13
14
15
16
17
18
19
2
20
21
22
23
24
3
4
5
6
7
8
9

same problem with dates it thinks they are strings. i have investigated the following:
(*) the columnheader objet does not have a property where i can define the data type of the column values that it will hold
(*) you cannot create a hidden column to sort on. ie. somehow fake the sort

the windows explorer uses a similar or probably the same control. click on the size and see the column values are not sorted as if they were strings, they are actually sorted in correct order of file size.

ANY IDEAS/SOLUTION/ALTERNATIVE.


also see the control (listview) used by winzip. do you think these are the same as what we the vb-developers have been provided with.


[This message has been edited by badal (edited 01-28-2000).]