ListView Sorting

G

Guest

How it is possible to sort ListView by clicking on the column when I have
numeric values (as string) in the column?
I tried to add numeric values into the listview, but it addes them as strings.

I can sort the column but I'm getting string sorting, for exp:
11,111,1111,22,222...

Thanks
 
H

Herfried K. Wagner [MVP]

Alex,

Alex Levi said:
How it is possible to sort ListView by clicking on the column when I have
numeric values (as string) in the column?
I tried to add numeric values into the listview, but it addes them as
strings.

I can sort the column but I'm getting string sorting, for exp:
11,111,1111,22,222...

Some samples for sorting a listview control can be found here:

<URL:http://www.codeproject.com/cs/miscctrl/#ListView+controls>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top