forum

Home / DeveloperSection / Forums / How to select row from winforms listview in C#

How to select row from winforms listview in C#

Anonymous User 2681 17-Jul-2013
Hi mindstick!

I have listview which is populated with list of data. Now I want to select desired row and on click button to recognize that item to delete from a collection.

Question is how to recognize selected row from the listview?

private void buttonDelete_Click(object sender, EventArgs e)

{

    //selected data is of custom type SelectedData

    var selected = (SelectedData)....?

}

Thanks in Advanced!


c# c# 
Updated on 17-Jul-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By