Sorting for datagrid in windows form
I am working in C# for windows form.I have two columns in the datagrid,one is string & another is int.I need to sort the data based on the int column when the string column is clicked.Can u pls help?
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
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 2, 2008, 11:20 AM EST
Sayanti9 reputationPosted Dec 2, 2008, 7:11 PM EST
Thanks but it is not solving my problem...I have column called sequence No which has data like :
1st row:1
2nd row:1.1
3rd row:10
4th row:2
5th row:1.1.1
I want to sort this in acending order
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 3, 2008, 5:10 AM EST
Sayanti9 reputationPosted Dec 4, 2008, 12:25 AM EST
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 4, 2008, 3:13 PM EST
If yes then could you tel me what is his index? I mean the position