How do I make sections in a PropertyGrid. IOW. what do I have to do to
prevent every public property appearing in the "misc" section?

TIA,

Bronco

Re: PropertyGrid section by Javier

Javier
Mon Mar 01 08:52:45 CST 2004


"Bronco" <bronco.news2@xs4all.nl> escribió en el mensaje
news:MPG.1aabfebe9977ed3a989683@news.xs4all.nl...
> How do I make sections in a PropertyGrid. IOW. what do I have to do to
> prevent every public property appearing in the "misc" section?
>
> TIA,
>
> Bronco

You set the CategoryAttribute and BrowsableAttribute attributes to your
property,
ex:

[Browsable(false)]
public int MyProperty { get { return myVariable; } }

[Browsable(true), Category("My Category")]
public int MySecondProperty { get { return MyProperty; } }

Hope this helps,

Javier Campos