How to change the Browsable attribute of a field class after its instantiation

160 Views Asked by At

I’m using in my application PropertyGrid controls to display the fields of the classes. To define which fields will be displayed I’m using the Browsable attribute from ComponentModel. I need to present the same class in two different forms, in the first all the fields must be showed and in the second, only the fields that user choose must be displayed. Is it possible to change the Browsable attribute from true to false after the class instantiation? A sample code would be very useful.

0

There are 0 best solutions below