Posted 15 years ago
by SledgeHammer01
Version: 10.1.0521
Platform: .NET 4.0
Environment: Windows XP (32-bit)

Hi,
I am using a date picker in a property grid. I have noticed that if I throw an exception in the setter, the error template is not shown. You can easily see this in your sample (/ProductSamples/PropertyGridSamples/QuickStart/PropertyEditors/).
1) select DateTimePicker (date only)
2) enter "aaa"
3) field becomes null and you pass a null to the property setter
property grid does not show the red rectangle in this case.
As far as my code goes:
the property...
[Modified at 04/23/2010 12:03 PM]
I am using a date picker in a property grid. I have noticed that if I throw an exception in the setter, the error template is not shown. You can easily see this in your sample (/ProductSamples/PropertyGridSamples/QuickStart/PropertyEditors/).
1) select DateTimePicker (date only)
2) enter "aaa"
3) field becomes null and you pass a null to the property setter
property grid does not show the red rectangle in this case.
As far as my code goes:
the property...
the DatePropertyEditor class...
the DatePropertyEditor template...
[Modified at 04/23/2010 12:02 PM]
[Modified at 04/23/2010 12:03 PM]