How to trap a System.Data.ConstraintException before WinGrid trap the error? I want to seek into the excpetion to find what kind it is (ForeignKeyConstraint or UniqueConstraint) and show a message box to the user according to the type of exception. How can I do that? Thanks.
Or CellDataError.
The grid should catch the exception and handle it by firing one or both of these events.
I'm not sure that you could trap the exact exception that is thrown, but you might want to see if the Error event of the grid is fired in this situation.
-Matt