I have an arraylist which contain objects of my own class. I want to fetch the object from the array list which has the index = selectedindex of listview.
I tried th
Put this line before your code -
if(listView1.SelectedIndices.Count > 0) { TrackInformation t=(TrackInformation) SongList[listView1.SelectedIndices[0]]; }