I have a datagrid with a column that allows entry by the user of strings which may contain numbers. The column I have made sorted programmatically and one other automatically. I have looked at all available information on this and other websites but have found nothing that works or in some cases that I am able to know how to implement. Many of the solutions use Icomparer but few are specifically for datagridview. This is an example of the column data after performing datagridview1.Sort(Column1, ListSortDirection.Ascending);
1
140
2b
40
70
7a
9
aa
aa30
aa5
bc
de
I have introduced the MyDatagridHelper Class and relevant code using the solution from this site: C#: Custom sort of DataGridView, but alas it gives the following results
aa
bc
de
aa30
2b
7a
70
1
40
140
9
aa5
All other solutions are not specific to datagridview. I am self taught and relatively new to coding, so I am not able to make sense of the code within. I have tried as best I can to find commonality and cut and paste but to no avail. Some examples I thought showed promise and might do the job were: https://www.codeproject.com/articles/22517/natural-sort-comparer and Natural Sort Order in C#
I effectively need help on how to implement these or any other solutions that might do the job. I have not included the second column for simplicity as it is not relevant to the question. Thanks