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

Default Category in PropertyGrid

Hello Syncfusion,
I would like to change default name of Category in PropertyGrid with EnableGrouping = True from "Misc" to something else dynamically defined.
For example for class
Person
{
[Category("A")]
public bool PropertyA {get;set;}

[Category("B")]
public bool PropertyB {get;set;}
//missing category attribute
public bool PropertyC {get;set;}
}

Where  PropertyC will not be in category Misc, but in something else.

Thanks

1 Reply

SM Sugapriya Mariappan Syncfusion Team June 10, 2016 04:11 AM UTC

Hi mzc,

Thank you for contacting Syncfusion Support.

We have prepared a sample based on your requirement. In this sample, we have specified CategoryAttribute for each property in the custom class. Such that the properties which are having same CategoryAttribute will be grouped under one category.

Please download the sample from the below link
Sample:PropertyGridCustomObjectSample

Regards,
M.Sugapriya


Loader.
Live Chat Icon For mobile
Up arrow icon