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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

is it possibile to dynamically configure PropertyGrid Content

Thread ID:





125523 Aug 22,2016 03:53 PM UTC Aug 24,2016 04:57 AM UTC WPF 1
Tags: PropertyGrid
Asked On August 22, 2016 03:53 PM UTC


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,


Mariappan S [Syncfusion]
Replied On 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.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon