Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
System.Data.ConstraintException
posted

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.

Parents
  • 37774
    Suggested Answer
    posted

    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

Reply Children
No Data