I have two questions:
Is there a way to sort the
DataGridViewby column - I want to do this using code so that one of my methods can sort theDataGridView. (Same effect as if the user clicks on the column header, but without the clicking.)When I sort a column with
decimalvalues (of typedouble) the sorting believes that 9.99 is larger than 24.99 - is there any way to prevent this type of sorting behaviour?
Update: Question number 1 was solved thanks to a link in the comments.
I also found the cause of the issue to question number 2: The values in my column are (double)price + "€". I tried removing the + "€" and it started sorting the way I want.
Now I want it to be able to sort, while keeping the € somehow.


