Search code examples
.netwinformspropertygrid

Can PropertyGrid edit any old list of key-value pairs?


All PropertyGrid examples I have seen allow the user to edit a single object, which PropertyGrid scans by reflection. I would like the user to be able to edit, for example, an ini file or a plain-old Dictionary, with one line per key-value pair. Is this possible?


Solution

  • Yes. Some years ago, I wrote some code to display an IDictionary in a PropertyGrid.