vb.net - Sort datagridview column numerically
<p>I know this has been asked quite a few times, but i'm having issues with the solutions found on most other pages.</p>

<p>I have a single datagridview column that i want to be sorted by number (1,2,10 instead of 1,10,2)
Best i can see online, i need to convert the column or cell to an integer value type - but i'm not sure how to do so.</p>

<p>I've tried <code>grid.columns(4).valuetype = typeof(System.int32)</code>, and tried the same for cells individually.</p>

<p>Trying above always results in a "int32 is a type in 'system' and cannot be used as an expression" error - which i'm not sure about.</p>

<p>The data itself is obtained froma text file, and converted from string to integer when being added into the cell <code>datagrid_alltracks.Rows(shutupaboutlambda).Cells(4).Value = CInt(numstring))</code></p>