• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

How to raise custom Validation Message in PropertyGrid?

F

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").
 
Top