Need to Hide / Unhide properties in property grid based on changes to one of the properties of selected object

I know to add / remove properties from the HidePropertiesCollection and this works when gird is initially built.
But I have an object with a property attached to a combo box. When that property's value is changed by picking a new choice from the combo box,
I am changing the properties stored in the HidePropertiesCollection, but the properties shown in the grid doesn't change.
What's the best way to refresh the property grid in this situation?

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team July 10, 2018 12:29 PM UTC

Hi Steve

Thank you for contacting Syncfusion Support

From your update, you want to refresh the property grid when you hide the properties on some property value changed. For this you can use RefreshPropertyGrid() method and it would be used on Selectionchanged event of ComboBox.We have also attached the sample for your reference. In our sample, we have hide the property of propertgrid on selectionchanged of combobox. Please download the same from following location: 

Please try this solution and let us know if it is helpful.

Regards
Vijayalakshmi V.R. 



SM Steve McWilliams July 10, 2018 02:47 PM UTC

Thanks a lot. That works perfectly


VR Vijayalakshmi Roopkumar Syncfusion Team July 11, 2018 04:45 AM UTC

Hi Steve

Thank you for the update.

We are glad that we have helped you to achieve the reported requirement with PropertyGrid.

Please let us know if you need any other assistance.

Regards
Vijayalakshmi V.R.

Loader.
Up arrow icon