equivalent of [XmlIgnore] for property grid

  • Thread starter Thread starter Romain TAILLANDIER
  • Start date Start date
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
 
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 ...
 
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

Back
Top