Calendar supports three different views, namely month, year and decade view. By default, the calendar displays month view showing month/year format. The calendar control allows you to navigate between the views through the calendar header as shown in the following GIF:
The table below depicts the three different types of view modes supported in the Calendar control.
View Modes | Snapshot |
Month | |
Year | |
Decade |
You can change the view of the calendar programmatically using ViewMode property of the C1Calendar class. The ViewMode property accesses the CalendarViewMode enumeration to change the calendar view.
The following code demonstrates how to set the year view for the calendar.