Moving data beteween 2 listBox

andy38

New member
Joined
May 30, 2006
Messages
3
Programming Experience
Beginner
Hi, I have this app. with 2 listBox which are adding or removing data using arrow buttons, listBox2 is bound to a dataSource, when trying to run the app I get this exception " Impossible to modify the element collection when DataSource is define" What can I do?, is there a tutorial that explain the inside mechanic.:confused:
 
What I would do is pull the data from the database and store it in a list, then use the list for the listboxes when showing it to the user

I'm not fully sure what you're trying to accomplish here, perhaps more details would help
 
Don't use databinding to populate the list - loop through your source and add the items manually, otherwise you can't add/remove them.
 
Back
Top