I have some columns in my dataTable viewed by a DatagridView which contain some integer cells(positive or negative) and some cells that their values cannot be converted to integer. Such as, empty cells. How can I sort such a column data. I have tried
dataTable.Columns.Add("ID", typeof(int));
But this code will give an error since some cell values cannot be converted to an integer.
In short, I need to ignore strings while ordering numerically.