I have a problem since I just cannot find a solution that works for me. I have ListBox
one that fills DataTable
as
listbox.DataSource = table;
listbox.Displaymember = "Name";
listbox.ValueMember = "ID";
If I now select an item in my list, I can get it as:
listbox.SelectedValue.toString();
My problem:
What should I do if I want ALL the selected values ββfrom ListBox
include multiple selection and save them all in an array or something like that ?!
I can not use SelectedItems
because it does not give me the necessary information.
source
share