I have a class like,
enum ConstraintType
{
Horizental,
Vertial,
Slope,
Offset
}
class Constraint
{
ConstraintType First {get;set;}
ConstraintType Second {get;set;}
}
I know the enum will be dropdownlist on the propertygrid.
I hope the candidate enum values of Second is Slope and Offset when the First equals Vertical.
I want to know how to display limited enum value in dropdownlist according to some other property.
Thanks.