Does anyone know of a solution for sorting a Data Grid View text column that contains a dash?
This is causing issues because it doesn't match the sort I get from SQL.
I googled some and found somebody that has same issue as me.
The Grid ignores the Dash for sorting.
Is there an option somewhere in .Net that can be set to fix this.
Here is an example.
The Data Grid View sorts like this.e.
10-199
10-299
103-10
103-20
10-399
where I would like:
10-199
10-299
10-399
103-10
103-20
Auguy
Sylvania/Toledo Ohio
This is causing issues because it doesn't match the sort I get from SQL.
I googled some and found somebody that has same issue as me.
The Grid ignores the Dash for sorting.
Is there an option somewhere in .Net that can be set to fix this.
Here is an example.
The Data Grid View sorts like this.e.
10-199
10-299
103-10
103-20
10-399
where I would like:
10-199
10-299
10-399
103-10
103-20
Auguy
Sylvania/Toledo Ohio