Automatically expand collection property?

Grids for WPF Forum

Posted 9 years ago by Michael Collins
Version: 14.2.0611
Avatar

I have a WPF PropertyGrid control embedded in my product. The object that the PropertyGrid is bound to has a few collection properties that are expandable in the PropertyGrid. What I would like to see happen is to be able to expand the collection property automatically if the collection is not empty so that the user by default sees all of the items in the collection and does not have to manually expand the collection. Is this possible?

Thank you.

Michael Collins

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Michael,

The only way to auto-expand a property would be to do a trick similar to what is in this thread:

https://www.actiprosoftware.com/community/thread/5758/expand-categories#21111

But instead of collapsing a category, you'd want to change it to expand a property.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.