collection editor, property grid, multiple types

J

jbaldi

I am trying to use a collection editor to edit multiple types as in
the following example:

http://windowsforms.com/blogs/faqs/...of-object-to-a-collection-at-design-time.aspx

The problem I am having is with the property grid. I can add multiple
types to my collection editor but in the property grid isn't showing
any properties for the members that I have added to the collection.
It is only showing Object with a value of the type of member I have
added.

How do I get it to show the actual properties of the members I have
added?
 
A

auratius

I think there is just 1 property available by default to the
collection editor (IsDropDownResizable). Unless you want to get to the
GetItems protected method and go through the array of items.

Auratius
http://www.auratius.co.za
 
M

Marc Gravell

Try adding [TypeConverter(typeof(ExpandableObjectConverter))] to the
type(s).

Marc
 

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