Share ComboBox DataSource?

You can "solve" it like this: // combobox. DataSource = list; var curr = new BindingSource(list, null); combobox. DataSource = curr; There is a default BindingSource (Currencymanager) linked to each Form that was keeping the 2 cbx in sync.

But I'm not sure what the exact rules are here. I'm not even sure if the above is a good idea or not. For small lists I would just make separate copies.

I can almost go bang my head against the wall. You know you asked me to set "cbo1. DataSource = list" and I had this line in the Form_Load while the bind() calls were commeted.So when I tried BindingSource inside bind(), it did not work... just to add on, for my case, it will not work with list.

BindingList is required. Thanks! – Jake Feb 1 at 11:31.

You cannot use the same object as the datasource for 2 seperate combo boxes. You should have list1 and list2 defined and populate each combobox with each one. Using the same datasource means that a selection in one combobox is reflected in the other.

Thanks for the info, let me come up with a solution to my specific problem and i'll get back. – Jake Feb 1 at 11:02 This does not make sense, does it? The datasource is just the list of items, it does not contain the selected item.So why should the selected item of one combobox determine the selected item of a different combobox using the same datasource for the list items...? – TheBlastOne Sep 1 at 8:06 @TheBlastOne the datasource in this case refers to the data where the list will GET its list of dropdownitems.

So it makes sense, or so I believe. The other datasource refers to a memory location where the UI will update as the user interacts with it. – Jake Sep 2 at 13:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions