1
Answer

Select listview and display

Nitin Sharma

Nitin Sharma

8y
312
1
hello friends I have an problem in my windows application.<br />I have one listview. when user select any row on that listview than that selected row contents must be display in others combo box. <br />my code is here. but it will show error:<br /> <br /> lbl_id.Text = listView1.SelectedItems[0].Text;<div></div><div><br />I have done same task with data grid view on below code and its working . but its grid view and now I wanted it on list view</div><div></div><div>txt_card.Text = (dataGridView1.Rows[index].Cells["column_name"].Value.ToString());</div>
Answers (1)