Good day. The first time I encountered such a problem: there is a collection of ObservableCollection<string> , which was passed as a data source for two combo boxes.

 ObservableCollection<string> list = new ObservableCollection<string>(); list.Add("Test String First"); list.Add("Test String Second"); cmbFirst.DataSource = list; cmbSecond.DataSource = list; 

If in the window I choose a line in the first combo box, then the same line is selected in the second combo box. How can I disable this "binding"?

enter image description here

    1 answer 1

    Specify different BindingSource for your drop-down lists.

     cmbFirst.DataSource = new BindingSource(list, null); cmbSecond.DataSource = new BindingSource(list, null);