Christopher
Christopher

Reputation: 371

Selecting index with viewlist in visual studio

How do I select an selected index in a listview in visual studio?

Upvotes: 1

Views: 251

Answers (1)

CharithJ
CharithJ

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

Related Questions