PC Review


Reply
Thread Tools Rate Thread

Bounded Listbox

 
 
Islamegy
Guest
Posts: n/a
 
      21st Sep 2005
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


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      21st Sep 2005
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]
- (E-Mail Removed)

"Islamegy" <islamegy#@#yahoo#.#com> wrote in message
news:(E-Mail Removed)...
>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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bounded Combobox & ListBox delay Islamegy Microsoft C# .NET 2 26th Sep 2005 10:46 AM
Bounded Listbox Islamegy Microsoft ADO .NET 1 21st Sep 2005 01:22 PM
Bounded Image Chuck Microsoft Access Reports 0 8th Sep 2004 08:15 PM
Adding a datarow to datatable bounded to listbox. Please help! Max Microsoft ADO .NET 0 4th Mar 2004 03:36 AM
how to add the bounded field ?? jims Microsoft Access Forms 2 22nd Jul 2003 06:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 AM.