1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to raise custom Validation Message in PropertyGrid?

Discussion in 'Microsoft Office' started by fmamstr, Feb 20, 2010.

  1. fmamstr

    fmamstr Flightless Bird

    Currently I'm using "PropertyGrid" control for my C# application. My problem
    is that when I input some "alphabetic" values(e.g. abc) for a property which
    only accpets “Integer†values, I get the error message below - "Property
    value is not valid", in the details panel, the information is like this - "
    'abc' is not a valid value for Int32".
    Could I customize this error message?(e.g. showing some user-friendly
    message instead of "Int32").
     

Share This Page