Hiding properties in ProepretyControl

Aug 27, 2012 at 7:02 AM


i am using an entity framework generated class and trying to hide some properties

i tries using "MetadataType" to add attributes to my class in this way:

Partial Public Class ItemsAttributes
    Public Property Path() As Global.System.String
End Class

Partial Public Class GetFolderItems_Result

End Class

when i bind my object to the propertyControl the property "Path" should not be displayed but it does show

is there another way to add attributes to a partial class without changing the automatic generated code?

thanks Ronen

Sep 12, 2013 at 6:26 PM
The 'Browsable' attribute should work but I can't verify VB functionality.

In C#, I have the following which does not appear in the PropertyControl:
        public bool ReplayRequired { get; set; }