This project has moved and is read-only. For the latest updates, please go here.

Set property min/max in PropertyGrid without multiple editors?

Jun 11, 2016 at 3:05 AM
Is there a better way of setting minimums and maximums for numeric properties without creating multiple editors?

I have seen some suggestions for a "Range" attribute and that would be a very handy feature.
Jun 13, 2016 at 2:03 PM

Yes, this is available in Toolkit v3.0. You can use the Range attribute as :
 [Range(0, 10)]
    [Description( "This property uses the [Range(0,10)] attribute to set the Minimum and Maximum properties." )]
    public double RangeDouble
In v3.0, you will be able to set the Maximum/Minimum properties on NumericUpDown/DateTimeUpDown and TimeSpanUpDown editors with the Range attribute.
Current versions are :
Community edition : v2.8
Plus edition : v3.0
Jun 15, 2016 at 3:31 AM
Definitely looking forward to v3.0, looks like it has a lot of useful features.