Hello,
How to change the visibility of another variable in the PropertyGrid based on the value of the variables in a class that we have bound to the PropertyGrid? For example, let's assume that there are variables Type, Description, and Size in the class. When the value of the Type variable is String, the Description variable is visible on the PropertyGrid, and the Size variable is hidden. If the value of the Type variable is double, the Size variable is visible and the Description variable is hidden.
It can be hidden by saying [Browsable(false)] in Normal. But how can we do this dynamically?
Hi Ozgur,
We are validating your reported query. We will validate and update you on or before 01st June 2023. We appreciate your patience until then.
Regards,
Raghavendra S
Hi Ozgur,
We have created a sample based on your requirements. Please refer the sample for your reference. Please revert us if this is not the case.
Regards,
Raghavendra S
Hi, when the PropertyGrid is Refreshed, if there are open subclasses, it closes after the refresh. I have to press the expand button again and open it. How can I avoid shutdown?
Hi Ozgur,
We are validating your reported query. We will validate and update you on or before 12th June 2023. We appreciate your patience until then.
Regards,
Bagavathi Perumal A
Hi Ozgur,
Regards,
Bagavathi Perumal A
Thank you very much for your reply. It was a quick solution. May I ask an additional question?
Is there a way to make IsExpanded = True specifically for the name I want, but not all of the PropertyViewItem? For example, I want IsExpanded true if the name is Address, and false if Desc.
Hi Ozgur,
We have created a sample based on your requirements. Please refer to the sample for your reference. Please revert us if this is not the case.
Regards,
Bagavathi Perumal A