How do I programmatically select an item in my listview

Platform: WinForms| Category: ListView

To select the i-th item, you can use code such as

//Make sure the listview has focus
listView1.Focus();
listView1.Items[i].Selected = true;

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.