public EnumEditor(GridRow parentRow) : base(parentRow) { if (!parentRow.PropertyDescriptor.PropertyType.IsEnum) throw new Exception ("property is not an enum"); }