954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sort DataGridView Numbers

A datagridview is sorting numerical values (when clicking the datagridview column header text) in the wrong order based on the initial digit:

1
11
2
200
21
3
3000
4
456

Should instead sort as:
1
2
3
4
11
21
200
456
3000

As the columns are set in the , window, it seems that the "System.Type.GetType("System.Int32")" solution I have found around the interwebs might not be the solution. I'd rather not rebuild everything from the ground up. Any ideas on how to sort numerical data correctly?

lordbaddkitty
Newbie Poster
6 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

Update...
vb.net, Visual Basic 2008

lordbaddkitty
Newbie Poster
6 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: