I can create a calendar view in code, however I have as yet been unable to figure out how to change the "Default Scope" (this is the name that appears in the user interface when editing a calendar view). The options in the user interface are Day, Week, or Month - Month being the default. I'd like to be able to change the default to something else, Week for example, but I cannot figure out how to do it, other than using the user interface.



calView = new SPCalendarView();
calView.ViewType = "week";
  • 1
    I've seen that, but as far as I can tell that only relates to adding a view to a web part? If I have access to the SPView object, how do I then use your code? – user259 Aug 17 '10 at 16:14

Try this link


You can't do it through API. By sending RPC call to owssvr.dll is the only other way other than UI. For complete solution, visit this link -



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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