Hide left bar in property grid?

Grids for WPF Forum

Posted 3 years 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 3 years 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 3 years 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 (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.