Transferring data from one list box to another c#

Posted by Jenny on Stack Overflow See other posts from Stack Overflow or by Jenny
Published on 2010-03-13T15:05:44Z Indexed on 2010/03/13 15:15 UTC
Read the original article Hit count: 157

Filed under:
|
|

Hi,

Ok so I have 2 list boxes one is connected to a database the other isnt.

I want to be able to send the selected item from the listbox connected to the database to the one that isnt.

Ive written this code

listBox2.Items.Add(listBox1.SelectedItem);

But instead of copyin the item i get "

System.Data.DataRowView

Anyone havin any advice?

© Stack Overflow or respective owner

Related posts about c#

Related posts about listbox