equivalent of [XmlIgnore] for property grid

R

Romain TAILLANDIER

Hi group

When i use [XmlIgnore] attribut for xml serialisation purpose, it does not
appears in the Xml doc.
I need the same attribut for PropertyGrid class. some attribute wich make
the property to not appears in my PropertyGrid.

Is somebody know about it ??

thank you
ROM
 
P

Patrick Steele [MVP]

Hi group

When i use [XmlIgnore] attribut for xml serialisation purpose, it does not
appears in the Xml doc.
I need the same attribut for PropertyGrid class. some attribute wich make
the property to not appears in my PropertyGrid.

Is somebody know about it ??

Use the Browsable attribute:

[Browsable(false)]
public string myProp ...
 
R

Romain TAILLANDIER

THANK YOU PATRICK :D


Patrick Steele said:
Hi group

When i use [XmlIgnore] attribut for xml serialisation purpose, it does not
appears in the Xml doc.
I need the same attribut for PropertyGrid class. some attribute wich make
the property to not appears in my PropertyGrid.

Is somebody know about it ??

Use the Browsable attribute:

[Browsable(false)]
public string myProp ...
 

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