Make SharePoint 2007 List View read-only

Posted by FireSnake on Stack Overflow See other posts from Stack Overflow or by FireSnake
Published on 2010-04-15T14:28:43Z Indexed on 2010/04/15 14:33 UTC
Read the original article Hit count: 157

Filed under:
|

I need to deploy a new List View for the standard List View Web Part in MOSS 2007 via the object model (the list already exists, a new view should be added). I need and want to make this list view read-only. This is because saving changes to the view would corrupt modifications made to Header/Footer.

How can I do that via the object model? I looked at the content db, the read-only flag (0x20) is stored with the view and could technically be updated using calls to proc_GetAllWebPartsOnPage and proc_UpdateView[Properties]. NOTE: The database interface and all mentioned stored procs are all documented by Microsoft.

Is there ANY way to do that via the object model, because I would strongly prefer that?

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about sharepoint2007