Hide left bar in property grid?

Grids for WPF Forum

Posted 4 years ago by Hari Selio
Version: 20.1.1

Is it possible to remove the left bar in the property grid?

Image attached in the link,


Comments (2)

Answer - Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA


That bar is where the expander will appear for properties that are expandable, such as collections. 

It's not really recommended to remove it but you probably can if you override PropertyGridItemAdapter.GetIndentAmount and return 0.  Then set the inherited adapter class instance you made to the PropertyGrid.ItemAdapter property.

Actipro Software Support

Posted 4 years ago by Hari Selio

We just wanted to show a dictionary of key value pair which does not have any grouping/collections.  So expander is not needed in our case.

Your suggestion did help,  Thank you.

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

Add Comment

Please log in to a validated account to post comments.