Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort column in dataview

Status
Not open for further replies.

Ator

Programmer
Jan 23, 2006
26
SE
Hello

I have a column in a dataview that I want to sort.
The datatype is string.

The values are like:
"0 %"
"10.2 %"
etc

How do I implement sorting on values like those? I can not convert the datatype to int (and skip %).

But if I have int's, you sort like "dataview.sort = 'mycolumn DESC'".
Now I want integer sorting on those strings above.

Does anyone have information about how to implement this sort?
(Im using VS2003)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top