I am trying to add a calendar web part to the default.aspx page within a feature. The calendar gets placed on the form but I would like the default view to be the summary view. I have read that if you set the ViewGuid to string.Empty it will set the view to the summary view but this is not working.
Ideas?
// Calendar
ListViewWebPart calendarWP = new ListViewWebPart();
SPList calendarList = site.Lists["Calendar"];
calendarWP.ListName = calendarList.ID.ToString("B").ToUpper();
calendarWP.ViewGuid = string.Empty;
oWPManager.AddWebPart(calendarWP, "Left", 3);