Customization of
PropertyGrid
is quite doable but not so easy. However, it you just want to develop your own editor, this is much simpler. You develop the editor for your type(s), write a special attribute and apply it to the type(s). If you do so, you won't need to add this attribute to the members of those type. This will automatically cover all types using your special types for their members — all such (unknown in advance) members will use your editor.
How to do this? If have a very detailed explanation with full source code, which is relatively short and easy. It least the idea is easy to catch. Please see my recent article:
Bitwise Enumeration Editor for PropertyGrid and Visual Studio[
^].
If you have other questions on
PropertyGrid
customization, I'll try to answer, but some sort of customization is relatively hard to explain without source code. I do have such code, but it will take a lot of time to adopt it for an article.
—SA