I have created a ListView called listUsers, but for some reason SelectedIndex isn\'t defined.
ListView
listUsers
SelectedIndex
There is no selected index property on ListView in winforms. To get the selected index you can use
listView1.SelectedIndices[0];
For getting the index of a row in ListView I'm using
int myindex = Listview1.FocusedItem.Index;
It works.