I have a class that is assigned as the SelectedObject of the PropertyGrid control. Is there a way to hide some of my class' properties from being displayed in the PropertyGrid? There are some values I supply by default and I do not want users to be able to change them.
Query#2:"Given value by default do not want users to be able to change them?"
We can avoid editing the property value by using "ReadOnly" attribute. We have created a sample with "ReadOnly" attribute. In tihs sample we have hide the property "Name" and we have used ReadOnly property for "Area" and "Mobile".