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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 26, 2015, 5:50 AM EST
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: