Obj Ref exception when unchecking datagridview checkboxcell

0
0

Hello,

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.

Thank you,
Andrew

  • You must to post comments
0
0

Thanks Andrew,

we will investigate that issue (logged as WJ-7268).

Best regards
Frank

  • You must to post comments
0
0

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”)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.