Copy from combobox

shers

Well-known member
Joined
Aug 12, 2007
Messages
86
Programming Experience
1-3
Hi,

I would like to copy data from a bound combobox to another combobox. The first combobox is bound to a datatable that consists of two columns, one as displaymemberpath and the other as SelectedValuePath. Is this possible?

Thanks
 
Of course it's possible but maybe you could provide the details so that we don't have to guess. Exactly what is it that you want to copy and under what circumstances?
 
The first combobox is bound to a datatable and it works perfect. The second combobox is dynamically created in window2 that is activated from window1. This combobox should contain all the items that is there in the first combobox in window1.
 
Why do you have to copy anything then? Why can't you just bind the second ComboBox to the same DataTable as the first ComboBox? Just pass the DataTable to the second form when you create it.
 
Back
Top