Windows Develop Bookmark and Share   
 index > Windows Forms General > Sorting Strings with numeric values
 

Sorting Strings with numeric values

I have a datatable with a column score specified as string. I am using dataview.sort to sort the results.But the sort is not returning the data I wanted.
Suppose if I have score as 
100.00 , 99,23,11 etc when I use dataview.sort I am getting results in the following order
100,11,23,99 what I am looking at is I want the data to be returned in the following order
11,23,99,100. 
Plz help
MigrationUser 1  Friday, October 29, 2004 11:40 AM
when you retrieve the data you'd have to cast it then, the string is always going to behave that way :( 
MigrationUser 1  Friday, October 29, 2004 3:00 PM

You can use google to search for other answers

Custom Search

More Threads

• BorderColor of ComboBox not drawn correctly in Silver Theme
• Extending Windows.Forms.Panel with custom borders
• Split Container User Control split borders invisible
• simultaneous events
• Adding a control to a panel, is not wanting to maximize, Help?
• How to disable a lable without changing appearance?
• access remote files
• MDI or other option?
• Reflection with ListView
• NotifyIcon Question