I have a 2 listboxes :- listbox1,listbox2 in a form that is databound
I've set the Listbox1 Data Bindings via the following code:
listbox1.DataSource = mydatatable
listbox1.DisplayMember = column1
listbox1.ValueMember = column2
I have set the selection mode to multipleextended.
Now when i loop thro the selected items i want to get the value of
each of the selected item and populate Listbox 2 with the selected item and its value.
How do i got about doing this.
I know that i can get the all the selected items using the listbox1.selectedindices.
But my problem is how do i get the value of the each selected Item.
Can it be done with the valuemember property ? if so how?
Thanks in adv for the help.
I've set the Listbox1 Data Bindings via the following code:
listbox1.DataSource = mydatatable
listbox1.DisplayMember = column1
listbox1.ValueMember = column2
I have set the selection mode to multipleextended.
Now when i loop thro the selected items i want to get the value of
each of the selected item and populate Listbox 2 with the selected item and its value.
How do i got about doing this.
I know that i can get the all the selected items using the listbox1.selectedindices.
But my problem is how do i get the value of the each selected Item.
Can it be done with the valuemember property ? if so how?
Thanks in adv for the help.