I can consistently get an object reference error when unchecking a checkbox in a datagridview. I have set some breakpoints based on the stack trace, and the error seems to be that inside of DataGridView.CommitEditInternal(object), the CurrentCell property is NULL and no check is done on line 5771 to ensure that var cell is not null before calling GetInheritedStyle(…); See attached screenshots.
I cannot recreate this in a sample app, or on other DGVs. Just one DGV in our system seems to have this problem, I’m hoping you can help me figure out what the issue is. I am running 1.3.65.
I may have found the answer. By adding this line of code in DataGridView.ProcessCellPointerWebEvents(…) at line 7368
SetCurrentCellAddressCore(colIndex, rowIndex, false, false, true);
Now the current cell is set on a DGV uncheck (“gridCellMouseDown”) as well as on a DGV check (“focusCellChanged”)