private void bt_modify_Click(object sender, EventArgs e) { if (lv_All.SelectedItems.Count > 0) { if (lv_All.SelectedItems[0].Group.Name == "User's Brick") { string str_qu = "select * from userbricks where part_name = '" + lv_All.SelectedItems[0].SubItems[0].Text + "'"; OleDbDataReader oddr = connector.select_Data(str_qu); Form_Update fu1 = new Form_Update(oddr); fu1.ShowDialog(); list_from_DB(); } } }