This project has moved. For the latest updates, please go here.

propertygrid property enable/disable visible/invisible

Nov 11, 2011 at 10:32 PM

I’m looking for a way to control enable/disable and visible/invisible states on individual properties, but not finding anything. Can you point me in the right direction?

The motivation is that sometimes the value of one property makes another property inapplicable.

Nov 12, 2011 at 12:21 AM

This is not natively supported by the propertygrid, but you may be able to do it using a custom editor that is defined in XAML.  You can try binding the visibility property of your editor templates to the value in question.

Dec 5, 2011 at 6:13 PM

Hello,

Property NoEdit / NoVisible in SettingsClass=

<code>

[Browsable(false)]

public String StatusTextZeile1 {get; set;}

</code>

Dec 5, 2011 at 6:44 PM

@MarioR3211, the method you describe is a compile-time solution. I'm looking for a dynamic solution, where I can dynamically control the enable/disable of visible/invisible state of one property based on the value of another property.