You need to put this before a property definition:
[System.ComponentModel.ReadOnly(false)]
[System.ComponentModel.ReadOnly(true)]
These are relevant if the property has both get and set definitions. A
property without a "set" definition is obviously a read-only property.
HTH, ramida
"Polo" <pb@rtech.be> wrote in message
news:43**********************@news.skynet.be...
I have a instance of a class A
I show it in a propertyGrid. Sometime this object can be edited, sometime
not (all properties readonly).
How can i do it (Without the ReadOnlyAttrivute)
Thank's in advance
Polo