Hello, I am trying to edit items from a listView. I want to press an edit button and have a form appear that populates all the text boxes on that form from the row selected on a listView. I attempted my code below which returns a specific item from a row when that specific row is hardcoded. I'm looking for something generic that grabs the row and allows me to get the data from it somehow I'm all out of ideas.. So please any help would be appreciated.
private void btnEdit_Click(object sender, EventArgs e)
if (listView1.SelectedItems.Count > 0)
mb.Author = listView1.Items.SubItems.Text;
mb.Description = listView1.Items.SubItems.Text;
mb.Condition = listView1.Items.SubItems.Text;
frmNewItem editFrm = new frmNewItem(mb);