Hide a property in derived class in propertygrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

how can I hide a property in a derived class in a propertygrid.

Let's say I have a classX and a derived classY. A property in classX will be
visible in the propertygrid but the same property in the derived classY will
not be visible in the propertygrid.

Does anyone know how to do this ?
 
MauriceM said:
Hi all,

how can I hide a property in a derived class in a propertygrid.

Let's say I have a classX and a derived classY. A property in classX will
be
visible in the propertygrid but the same property in the derived classY
will
not be visible in the propertygrid.

Does anyone know how to do this ?

Override the property and add the [Browsable(false)] attribute.
 
Thx John, I'm going to try this out. Sounds very logic.

John Vottero said:
MauriceM said:
Hi all,

how can I hide a property in a derived class in a propertygrid.

Let's say I have a classX and a derived classY. A property in classX will
be
visible in the propertygrid but the same property in the derived classY
will
not be visible in the propertygrid.

Does anyone know how to do this ?

Override the property and add the [Browsable(false)] attribute.
 
Back
Top