Property grid collections (revisted)

G

Guest

I have a property grid which nicely handles collections of objects. Within
the property grid I have control over what is displayed to summarise the
collection, but can this be editable too?

What I want to achieve is something similar to what the property grid gives
you naturally for complex objects like Point and Font. For a Point it gives
you an x,y coordinate summary which you can edit directly, or you can expand
to see and edit the detail X and Y properties in isolation.

I need this kind of thing for my own classes that expose properties. In 95%
of cases the user will only be interested in the first item in my
collection, and I wish to show this against the expandable collection object
in the grid and allow it to be edited, but also allow the user to expand to
see the entire collection for individual editing.

If anyone could tell me whether this is possible and how to do it I'd be
most grateful !
 
P

Patrick Steele [MVP]

What I want to achieve is something similar to what the property grid gives
you naturally for complex objects like Point and Font. For a Point it gives
you an x,y coordinate summary which you can edit directly, or you can expand
to see and edit the detail X and Y properties in isolation.

Make Your Components Really RAD with Visual Studio .NET Property Browser
http://makeashorterlink.com/?F5D0125F1
 

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