Hide left bar in property grid?

Grids for WPF Forum

Posted 9 months ago by Hari Selio
Version: 20.1.1
Avatar

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

Image attached in the link,

http://prntscr.com/w2i3yl

Comments (2)

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

Hello,

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 9 months ago by Hari Selio
Avatar

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 (v21.1.3) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.