how to sort string as number in datagridview in winforms
- by Thunder
I have string column with numbers in a datagridview.It is not bound, I would like to sort it number wise I used
colid.ValueType = typeof(int);
grid.Sort(colid, ListSortDirection.Descending);
but is sorts like string eg:
11
12
23
7
80
81
while the expexted is
7
11
12
23
80
81