You can change the data view of a C1EventsCalendar control at design time using Source view, Properties window, and in Code.
Complete the following steps to set the ViewType property to Month:
In Source View
Switch to Source view and add ViewType="Month" to the <cc1:C1EventsCalendar> tag so that it appears similar to the following:
<cc1:C1EventsCalendarID="C1EventsCalendar1" runat="server"
ViewType="Month">
In the Properties Window
In Code
Add the following code to the Page_Load event to set the calendar's ViewType to Month:
| Visual Basic |
Copy Code
|
|---|---|
C1EventsCalendar1.Views[2].IsActive = true |
|
| C# |
Copy Code
|
|---|---|
C1EventsCalendar1.Views[2].IsActive = true; |
|
What You've Accomplished
When you run the project, EventsCalendar appears as shown in the image below.
