J
John Allen
Hi there,
Given a "PropertyGrid" with one particular property that appears as follows:
-Size
Width 10
Height 20
where "Size" is the native .NET "Size" structure, if the property is marked with the "ReadOnlyAttribute" then all three lines above appear grayed out as usual. However, if you replace "Size" with your own customized "Size" structure" instead (not inherited from the native .NET "Size" structure), then "Size" above will now be grayed out but not the "Width" and "Height" lines. Is there no way to propagate the "ReadOnlyAttribute" to all children or do we really have to handle this manually (by creating a read-only "PropertyDescriptor" for all children). Thanks.
Given a "PropertyGrid" with one particular property that appears as follows:
-Size
Width 10
Height 20
where "Size" is the native .NET "Size" structure, if the property is marked with the "ReadOnlyAttribute" then all three lines above appear grayed out as usual. However, if you replace "Size" with your own customized "Size" structure" instead (not inherited from the native .NET "Size" structure), then "Size" above will now be grayed out but not the "Width" and "Height" lines. Is there no way to propagate the "ReadOnlyAttribute" to all children or do we really have to handle this manually (by creating a read-only "PropertyDescriptor" for all children). Thanks.