Greetings,
My custom class contains several dictionaries, and when I display the class in a property grid and expand the dictionary I have the key string appearing on the left and the value appearing on the right -the value is editable. (I would like to be able to edit the key from this display as well but I believe that is not part of the property grid control).
The problem comes when attempting to add new entries to the dictionary. The collection editor opens, but the add/remove buttons are disabled and it seems the type it is expecting me to add is either a string or a DictionaryEntry, when I need to be able to add or edit both the key and the value.
This is my first forray into reflection-based programming so the solution is beyond me. Specifying a custom property editor, maybe?
Any help in the matter would be very much appreciated! Thanks in advance,
Robert
Loading

Answers
Know the answer? Post it. Somebody with the same question will find it here.