listview
-
How do i get the text for a listview subitem? I have two listviews and tview and cview how do i get the subitem from tview i want to get it in another click event? ListViewItem item2 = new ListViewItem(); item2.Checked = true; item2.ImageIndex = 0; tview.Items.Add(item2); item2.SubItems.Add(CBTaxiId.SelectedItem.ToString()); Da Intern
-
How do i get the text for a listview subitem? I have two listviews and tview and cview how do i get the subitem from tview i want to get it in another click event? ListViewItem item2 = new ListViewItem(); item2.Checked = true; item2.ImageIndex = 0; tview.Items.Add(item2); item2.SubItems.Add(CBTaxiId.SelectedItem.ToString()); Da Intern
jphuphilly wrote: How do i get the text for a listview subitem? tview.Items[x].SubItems[1].Text listViewItem.SubItems[0].Text returns the text of the item, listViewItem.SubItems[1] returns the first subitem, .Subitems[2] the second subitem, and so on.