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

Default Category in PropertyGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

124425 Jun 9,2016 08:50 AM UTC Jun 10,2016 04:11 AM UTC WPF 1
loading
Tags: PropertyGrid
mzc
Asked On June 9, 2016 08:50 AM UTC

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

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


CONFIRMATION

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

;