shane

shane

  • NA
  • 1
  • 0

ExpandableObjectConverter question

Aug 3 2005 9:33 AM
Hi,

I have written a cutsom TypeConverter which derives ExpandableObjectConverter which is used for a custom type descriptor. The custom type descriptor overrides the GetProperties function to return a dynamically created PropertyDescriptorCollection.

This call works great in that when I set my custom object into a property grid it all displays dynamically as expected, except for one little annoyance: Even if I return an empy PropertyDescriptorCollection in the GetProperties function of my derived ICustomTypeDescriptor class, I still get the little plus sign next to the property! So in other words, I just can't seem to get the plus sign to disappear on types which have no properties.

Can anyone please shed any light on this for me?

Shane