Hiding control attributes in ASP.Net

I am creating a composite control consisting of an Infragistics WebDataGrid, an add button and some ModalPopupExtenders. I want to keep the design time of this composite element as simple as possible. Meaning, as soon as they print, they don't want any AccessKey, EnableTheming, and all those properties that have no value at all to be displayed when creating this element.

Bottom line: Does anyone know how to hide an attribute in a custom control?

Jonathan

+1


a source to share


1 answer


you can override all properties and put the Browsable attribute on them:



[Browsable(false)]
public override string AccessKey
{
    get
    {
        return base.AccessKey;
    }
    set
    {
        base.AccessKey = value;
    }
}

      

+2


a source







All Articles