DenisVuyka/WPG — Issue #17: PropertyGrid crashes when entering invalid characters
Author: sunbow
Created: 2011-10-29 15:21:44+00:00
State: open

When i write for example in an Int32-Field "123a", the property grid crashes.

This is not cool. the user may make a misstype and all the data he edited is lost.

I would prefer to have a regular expression for each type which defines the allowed characters. All unsupported characters can simply not be written into the field.
This can still cause invalid strings. e.g. "12.3.4" for a double...

Another cool alternative would be just to not update the value but highlighting the field somehow (depending on the theme).