オブジェクトを含む同じリストウィッチからデータを取得する2つのコンボボックスがあります。ComboBox 1 で選択した項目を 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