Using e.cancel with tab selection messes up datagridview mouse buttons.
I have 3 tabs with datagridviews. When the user adds a new record, then leaves the row, I call up the rowvalidating and ask the user if they want to discard the record that wasn't saved. If they say no, I use the e.cancel and it works great. It takes them back to the record, they can do whatever they want.
However, if they click on a different tab after inserting a new record, the e.cancel seems to mess up some of the mouse click events. I can click on the cells for inserted row, but the dropdown no longer expands, and I cannot highlight any text in cell, but I can type in the cells with no problem.
When I put a breakpoint on the datagridview_cellclick event, it doesn't event register that I clicked the cell.
Using VS2008 Pro
Dave