property grid issues

L

Lance Johnson

I have created a class B that contains 2 properties, which are both public.
I have a user control A that has 2 different instances of this class (C and
D). I've tagged it with the right attributes, but it's not showing the
subproperties of the item.

So in my property grid, I see C and D with the text out to the side, but the
sub properties are now showing up. Any clues. The values are actually
being serialized out. I can see that when I view the initializecomponent
code, but I want to be able to edit it. This seems real odd. The
properties are just a string and a bool.

Lance Johnson
 
S

Sean Hederman

To show expandable properties you need a type converter defined for the
property. Have you defined the TypeConverterAttribute on the properties? If
not, have a look at the ExpandableObjectConverter.

Lance Johnson said:
I have created a class B that contains 2 properties, which are both public.
I have a user control A that has 2 different instances of this class (C and
D). I've tagged it with the right attributes, but it's not showing the
subproperties of the item.

So in my property grid, I see C and D with the text out to the side, but
the sub properties are now showing up. Any clues. The values are
actually being serialized out. I can see that when I view the
initializecomponent code, but I want to be able to edit it. This seems
real odd. The properties are just a string and a bool.

Lance Johnson
ibute
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top