I got 2 listboxes in a window form, one on left and one on right. The
1st listbox have some items while the 2nd listbox is empty. Also there
are 2 buttons between the 2 listboxes which used to move item from/to
the 1st and 2nd listbox
My problem here is that after I bind the data to the 1st listbox (from
a dataTable, using DisplayMember and ValueMember) , and I try to move 1
of the item from this 1st listbox to the 2nd listbox and I want that
the selected item is also removed from the 1st listbox by:
But the selected item is not removed from the 1st listbox.
Also on deselect button when i move item from 2nd listbox to 1st
listbox,it displays error message
"Items collection cannot be modified
when the DataSource property is set."