I have two controls containing DataGridView
s on different panes in a DockPanel
. If one is in edit mode and I switch pane, I get a NullReferenceException
thrown from within the DataGridView
's EndEdit()
method. The stack trace doesn't go any deeper than that and the exception doesn't contain any more information.
I've looked at that method in the reflector, and I can't see anything obviously null. I suspect that the problem is actually in my code, but the exception is being rethrown from within Microsoft's code and that's resetting the stack trace. How do I find out what originally caused the exception?