C
Charlion69
Guest
i want to be able to display the lists of items in the first column of a Listview control on a listbox control. And also be able to display the subitems or values from the Listview control on a label when i select an item from the listbox.
Below is a sample of my code:
For Each lvi As ListViewItem In FrmDataServer.ListView1.Items
ListParameters.Items.Add(lvi.Text)
Next
ListParameters.DataSource = FrmDataServer.ListView1.Items.Add(0) 'ds
ListParameters.DisplayMember = "item(0)" 'This is the firt column
ListParameters.ValueMember = "SubItems(0)" 'This is the sond column or subitem
Continue reading...
Below is a sample of my code:
For Each lvi As ListViewItem In FrmDataServer.ListView1.Items
ListParameters.Items.Add(lvi.Text)
Next
ListParameters.DataSource = FrmDataServer.ListView1.Items.Add(0) 'ds
ListParameters.DisplayMember = "item(0)" 'This is the firt column
ListParameters.ValueMember = "SubItems(0)" 'This is the sond column or subitem
Continue reading...