Hi,
How do i sort the alphanumeric column in a datagridview in c# windows application. and i hve the following data
i1
i10
i20
i2
i3
i12
this is sorted in the form of
i1
i10
i20
i2
i20
i3
but i want it in this format
i1
i2
i3
i10
i20
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jan 26, 2015, 10:50 AM
Suppose the DataTable is 'dt' and the column which contains the i1, i2 etc. is called 'ID'. The code to bind the DataTable would then need to be altered as follows: