Hi,
From a small sample project where the PropertyGrid.SelectedObject = MyClass, I can see that only the public properties are displayed in the propertyGrid. Here's the reason : in "ObjectContainerHelperBase.GetPropertyDescriptors" method, this line is used :
From a small sample project where the PropertyGrid.SelectedObject = MyClass, I can see that only the public properties are displayed in the propertyGrid. Here's the reason : in "ObjectContainerHelperBase.GetPropertyDescriptors" method, this line is used :
descriptors = TypeDescriptor.GetProperties( instance.GetType() );
The instance type is the MyClass type and this system method returns only the public properties into the descriptors.