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.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Islamegy" <islamegy#@#yahoo#.#com> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
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