Expand custom object in property grid without any modifications to the class?
问题 By default, custom objects are grayed out, and not expandable: I know it's possible to make them expandable using ExpandableObjectConverter, but that requires extending the original class. What if I cannot modify the original class? Is there a generic approach of handling custom object expansion inside a property grid? 回答1: You can dynamically add the TypeConverterAttribute for the ExpandableObjectConverter at runtime, using something like the following (VB.NET). Dim attr = New