Hi!
I need help with something in the listBox.
I wonder how I can make numbers in front of the sentence in a list box ant it comes automaticly.
C# rownumber help
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
SenthilkumarRank #387 · 6.5K reputationPosted Dec 9, 2011, 6:41 PM EST
I do not think we have any automatic way to do that.
I think we can do it in two way.
Set the variable in the loop to increment and add along with the text.
Second one, while retrieving the data it self have a separate column in the query and add it the along with the text.
Thanks,
Senthil.
David12 reputationPosted Dec 10, 2011, 7:04 AM EST
but do you know any guides on that?
Sam HobbsRank #107 · 20.5K reputationPosted Dec 10, 2011, 11:22 AM EST