"jediknight" <wa*****@gmail.coma écrit dans le message de news:
11*********************@m79g2000cwm.googlegroups.c om...
| I have a listview which has columns of text and columns of numerical
| data.
| I need to be able to sort these columns into ascending/desending order
| whenever the user clicks on the column header.
| The text columns are sorted correctly but the numerical columns seem
| not to get sorted properly.
Why not use a List<intto hold the values and set that to be the DataSource
for the listview ? That way the list is a true list of integers instead of
strings and you can add, remove and sort the list; the view then simply
reflects the contents of the list.
Joanna
--
Joanna Carter [TeamB]
Consultant Software Engineer