I have two controls containing a DataGridView in different panels in a DockPanel . If someone is in edit mode and I switch the panel, I get a NullReferenceException coming from the DataGridView EndEdit() method. The stack trace does not go deeper than this, and the exception does not contain any information.
I looked at this method in the reflector and I don't see anything explicitly null. I suspect the problem is actually in my code, but the exception is returned from the Microsoft code and overwrites the stack trace. How to find out what caused the exception initially?
Simon source share