Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When I hide the list using

list.Hidden = true;

It's hidden from the Quick Launch and it's also hidden from the Sharepoint Designer.

I'm rather interested in a useful feature for lists in Sharepoint Designer called "Hide from browser". Can this option be set from code?

share|improve this question
add comment

1 Answer

Actually via SharePoint Designer you do have an option to "show" again the list. The operation you mentioned, performed via code, does exactly that!

How to open hidden list and un-hide it in Designer:

1) Open SharePoint designer 2010.

2) Click the “All Files” folder at the bottom in left pane.

3) Right click your hidden list from “All Files -> Lists” folder and choose property.

4) Now you have your hidden list open in SPD.

5) In List settings-> General Settings: Un-check the “Hide from browser” and save.

share|improve this answer
    
What I want to achieve is the opposite: is there a code equivalent to Designer's "Hide from browser" that works exactly like the Designer option? –  Marius Kay Jan 21 '13 at 10:12
    
You mean that setting "Hidden" to False (followed by a call to Update), doesn't show up again?? –  C. Marius - MVP Jan 21 '13 at 10:13
add comment

Your Answer

 
discard

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.