views:

19

answers:

1

what is equivalent to allowlayoutchange="false" allowpersonalization="false" allowcustomization="false"> in object model

+1  A: 

Microsoft.SharePoint.WebPartPages.WebPartZone has the properties

  • AllowCustomization
  • AllowLayoutChange
  • AllowPersonalization
Ryan
ListViewWebPart lvwp = new ListViewWebPart(); It does not like if I use lvwp.Zone.AllowLayoutChange = false; or I dont even see allowcustomization or allow personalization. How to use them.
Multiple Word
ListViewWebPart is a web part - not a zone. A zone *contains* web parts. You're looking in the wrong place.
Ryan
Gien I am looking in the wrong place. Where and How is done then? My web part page called "Customer.aspx" where I am inserting 3 listview webparts. I am guessing it's has to be at the "web part page" level not web part.
Multiple Word
Look at your question, you asked a specific thing and you've got a specific answer. Now you're asking something else (I can't tell exactly what your asking). If you can't ask the right question how do you get expect to get the right answer?
Ryan