Property Grid - Browsable Attributes

Jan 5 2006 1:51 AM

hi
i have a program where I want to change the value of BrowsableAttributes.The problem is like this:
I have a property called Simulation which can have values either On or Off.If it is On i want to show property called OnText along with other properties and hide OffText property and if is Off i want to hide OnText and Show OffText along with the common properties.
For this i feel i have to change the value of BrowsableAttributes.but it

doesn't allow me to do so as it is readonly.
Kindly suggest me a way to get around this problem.
thanks