Reputation: 371
How do I select an selected index in a listview in visual studio?
Upvotes: 1
Views: 251
Reputation: 47510
You can use ListView.SelectedItems property if you are not using checkboxes. http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.selecteditems.aspx
You can use ListView.Checkedindices propery if you are using checkboxes. http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.checkedindices(v=vs.71).aspx
Upvotes: 1