| Working with Scheduler for WinForms > Data Views > Changing the Default Data View |
To change the default data view at design time, set the ViewType property either in the Smart Designer, tasks menu, or in code.
Add the following code to the Form_Load event to set the default ViewType property to MonthView:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Me.C1Schedule1.ViewType = C1.Win.C1Schedule.ScheduleViewEnum.MonthView |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
this.c1Schedule1.ViewType = C1.Win.C1Schedule.ScheduleViewEnum.MonthView; |
|