Hi, I need to sort the data in listbox,
the listbox is populated from text file with 5 fields (columns) about 20 rows.
Please advise how to sort?
Thanks
Hi, I need to sort the data in listbox,
the listbox is populated from text file with 5 fields (columns) about 20 rows.
Please advise how to sort?
Thanks
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 attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Nov 27, 2012, 11:29 AM EST
listBox1.DataSource = lines;
VulpesRank #55 · 29.2K reputationPosted Nov 27, 2012, 5:16 AM EST
The result is:
A, B, D, G, C
B, A, F, G, C
B, E, C, D, F
C, D, E, F, G
meng24 reputationPosted Nov 27, 2012, 12:22 PM EST
VulpesRank #55 · 29.2K reputationPosted Nov 27, 2012, 1:57 PM EST
listBox1.Items.Clear();