How to select item in the ListView control
How to select item in the ListView listview1.Items[i].Selected = true;//Not working
4 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
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 21, 2020, 6:53 PM EST
Vikas JhaRank #1,222 · 1.5K reputationPosted Nov 21, 2020, 6:49 PM EST
if (listView1.Items.Count > 0) { listView1.Items[0].Selected = true; listView1.Select(); }Sachin SinghRank #66 · 26.2K reputationPosted Nov 21, 2020, 6:55 PM EST
Nabin Agarwala196 reputationPosted Nov 21, 2020, 6:56 PM EST