By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,579 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,579 IT Pros & Developers. It's quick & easy.

PropertyGrid Control - Accessing Collections

P: n/a
Hi,

I have been trying to use the property grid control as a means of editing an
object, one of the properties of the objet is a collection of another of my
classes. to create the collection i have inherited CollectionBase.

When the PropertyGrid is displayed the collection has the elipses as
expected, but when i click on this the pop-up editor any try to add a new
item to the collection the item is of type System.Object (with no properties)
rather than my own object?

Any help appriciated
Feb 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

You need to make a UITypeEditor for that. Take a look at the
vbpowerpack for some examples.

http://msdn.microsoft.com/library/de...bpowerpack.asp

Ken
---------------
"Mkenney" <mk*****@nomail.nomail> wrote in message
news:31**********************************@microsof t.com...
Hi,

I have been trying to use the property grid control as a means of editing
an
object, one of the properties of the objet is a collection of another of
my
classes. to create the collection i have inherited CollectionBase.

When the PropertyGrid is displayed the collection has the elipses as
expected, but when i click on this the pop-up editor any try to add a new
item to the collection the item is of type System.Object (with no
properties)
rather than my own object?

Any help appriciated

Feb 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.