Bounded Listbox

  • Thread starter Thread starter Islamegy
  • Start date Start date
I

Islamegy

I have 2 listbox binded to 2 datasource, one for the granted Roles & the
other to display all roles..
i set the DisplayMember to "RoleName" & valueMemeber to "RoleID".

I have 2 button to copy between 2 listbox.. how could i move the item from
one to another and update datasource???

listbox1.items.add(listbox2.SelectedItem); didn't work!!
need help plz
 
Islamegy,

In order to do this, you would have to modify the underlying data source
(since they are bound). When you want to copy from one to the other, you
have to remove the row in the source, and add it to the new data source (a
data table, I assume).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top