
Is it possible to remove the left bar in the property grid?
Image attached in the link,
Is it possible to remove the left bar in the property grid?
Image attached in the link,
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.
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.
Please log in to a validated account to post comments.