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 <Right click>, <Edit Columns> 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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.