C#: Is there a way to return a reference to the selected Item in listview?
Like in the selectedindexchanged, is there a way to return the item of the index that was selected?
C#: Is there a way to return a reference to the selected Item in listview?
Like in the selectedindexchanged, is there a way to return the item of the index that was selected?
Either
myListView.Items[ myListView.SelectedIndices[ 0 ] ];
or
myListView.SelectedItems[ 0 ];
should work