dataGridView ComboBox Event Handler Problem
问题 I am having a problem with the handling of an index changed event for a comboBox that resides inside a dataGridView. I write an method to handle the comboBox selection change using either a delegate: ComboBox.SelectedIndexChanged -= delegate { ComboBoxIndexChanged(); }; ComboBox.SelectedIndexChanged += delegate { ComboBoxIndexChanged(); }; or an EventHandler: comboBox.SelectedIndexChanged += new EventHandler(ComboBoxIndexChanged); but both methods do not work as expected. That is, when you