C#C
C#3y ago
Xoggg

❔ Copying selected item from list box to another list box (Utilizing data source)

I cant seem to be able to copy one item from a listbox to another, my current code I am attempting is as so

listbox3.items.add(listbox2.selecteditem.tostring());

It is adding an item to my list box, but it reads
System.Data.DataRowview instead of the selected item text, I think this is due to me populating my initial listbox from a data source.

Is there an easy work around for this? I couldnt seem to find anything like this issue online.
Was this page helpful?