I have two comboBoxes take the data from the same List witch contains an objects. How to remove the selected item in ComboBox 1 from items in ComboBox 2?
comboBox1.DataSource = CityList; //CityList is list contain objects
comboBox1.ValueMember = "ID";
comboBox1.DisplayMember = "Name";
comboBox2.DataSource = CityList;
comboBox2.ValueMember = "ID";
comboBox2.DisplayMember = "Name";
comboBoxTargetState.Items.Remove(comboBoxCurrentState.SelectedItem); // give me an excption