Attributes in property grids

J

johan.risberg

Hallo

I have a problem concerning properties in a settings object. I would
like to categories my properties using category attributes, or
something similar, so I can display them nicely using a property grid.
My problem is that I do not know how to change the category attribute
associated with a certain property.

Ex: I have a settings class called settings from with I create an
instance called settings.settings In this class I have a property of
type string called AA I want this to be sorted under attribute BB in my
property grid. How do I do this?

Can anyone help me?

Thanks Johan
 
C

Cerebrus

Hi Johan,

Have you checked the "System.ComponentModel.CategoryAttribute" class ?
You can set the Category that a property belongs to by adding this
attribute to it.

Regards,

Cerebrus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top