“reentrant call to SetCurrentCellAddressCore” in event handlers - only where cell row and column indices are equal
问题 I am making a WinForms application which includes a form that uses a DataGridView to handle simple data manipulation. To ensure accurate entry while mitigating clutter (read: without using DataGridViewComboBoxColumn ) I have a couple event handlers which temporarily turn a DataGridViewTextBoxCell into an equivalent DataGridViewComboBoxCell connected to values known to be "clean" when editing events are raised (typically when an editable cell is clicked): private void OnCellEndEdit(object