Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Selecting item from listview in C#

private void listView1_SelectedIndexChanged(object sender, EventArgs e)
 {
   if(listView1.SelectedItems.Count > 0)
     textBox1.Text = people[listView1.SelectedItems[0].Index].Name;
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Selecting #item #listview
ADD COMMENT
Topic
Name
8+4 =