We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

is it possibile to dynamically configure PropertyGrid Content


I have a PropertyGrid that displays the properties of a generic object that has some generic properties whose meaning change at runtime.
So, for some properties, I can't have static information available at compile time but only at run-time.

To be more specific I have some properties that must be shown only in certain situations that I know only at run-time.
I can't decorate such properties with a
[Browsable(false)] attribute,
since I can't know statically this information.

In addition I have similar problems with DisplayNameAttribute && DescriptionAttribute.
I can't supply, for such generic properties, a static description at compile time, since I can know the exact values to put to these attributes only at run-time.

So, my question is: is there a possibility to define the browsability and the DisplayName and DescriptionAttribute of a generic property at run-time ?

Thank you,


1 Reply

MS Mariappan S Syncfusion Team August 24, 2016 04:57 AM UTC

Hi Silvio   
Thank you for contacting Syncfusion Support.   
We have prepared sample based on your requirement. In this sample we have changed the “Browsable, DisplayName and DescriptionAttribute” at runtime by using PropertyDescriptor. But all the attributes changed at runtime except “Description Attribute”.   
Please download the sample from the below link   
Sample link:  PropertyGridSample
Issue: “Description” attribute doesn’t change at runtime   
We have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates   
Mariappan S.  

Live Chat Icon For mobile
Up arrow icon