G
Guest
Hi
I have a class which has a property which implements IDictionary which I
would like to display in a propertygrid control. If I add
[TypeConverter(typeof(ExpandableObjectConverter))] the property expands, but
I only get Count, IsReadOnly, Keys and Values properties, all of which are
disabled.
If I implement my property as Dictionary<string, myObj> I get the option to
click on the keys and the values, but these then bring up the input dialog
into which I can't add any new values (for good reason).
List<myObj> works fine of course.
I have googled around and found some articles, but none of these seemed to
work.
Please could anyone advise as to the best way to solve this problem.
Marek
I have a class which has a property which implements IDictionary which I
would like to display in a propertygrid control. If I add
[TypeConverter(typeof(ExpandableObjectConverter))] the property expands, but
I only get Count, IsReadOnly, Keys and Values properties, all of which are
disabled.
If I implement my property as Dictionary<string, myObj> I get the option to
click on the keys and the values, but these then bring up the input dialog
into which I can't add any new values (for good reason).
List<myObj> works fine of course.
I have googled around and found some articles, but none of these seemed to
work.
Please could anyone advise as to the best way to solve this problem.
Marek