Can any one help me
I m using the binding the DataSet with ListBox with ValueMember Now all I need is to get the ValueMembers for Multi selected items in the list box.
How can i get the value of ValueMember for Each Selected Item
Can any one help me
I m using the binding the DataSet with ListBox with ValueMember Now all I need is to get the ValueMembers for Multi selected items in the list box.
How can i get the value of ValueMember for Each Selected Item
Get ValueMembers from a Databound Multiselect ListBox
duncan849
Mihai
arganx
PhilPorreca
use the following code to get the Selected data:
for
(int i=0;i<=listBox1.SelectedItems.Count-1;i++){
DataRowView ln = (DataRowView) listBox1.SelectedItems
;
MessageBox.Show(ln["name"].ToString());
}
HannibalCannibal