SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on developing an (ASP.NET) web part for SharePoint 2010.

I have a requirement to not to show the Appearance and Layout category which gets displayed by default in the web part tool pane (editor part).

So I am seeking pointer through which I can achieve this.

share|improve this question

Those Properties are stock standard with any Sharepoint webpart as you know.

I have not tested the following code, but i'm pretty confident that this should work:

    public override Microsoft.SharePoint.WebPartPages.ToolPart[] GetToolParts()
        Microsoft.SharePoint.WebPartPages.ToolPart[] myCustomToolparts = CreateMyCustomToolParts();

        //Removing the Base Method for calling creating the ToolParts should hide all the Built in Toolparts
        //return base.GetToolParts();

        return myCustomToolparts;

If this does not work I'd suggest some Javascript/Jquery:

function hideToolParts(){

Hope this helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.