Home » FAQ » WinForms » ListView » How do I programmatically select an item in my 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;
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with