Nitin Sharma

Nitin Sharma

  • NA
  • 154
  • 62.1k

Select listview and display

May 16 2016 8:24 AM
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)