Calendar for ASP.NET Web Forms
Calendar Dates
Behavior > Calendar Dates

The default C1Calendar control displays a 7x6 calendar matrix for one calendar month. The seven columns represent the week days (Sunday through Saturday) and the six rows represent the weeks. You can change the number of calendar days shown on the calendar by increasing the integer values for the DayRows property.

In the default calendar you can select dates ranging from 1/1/1900 to 12/31/2099 since the minimum and maximum calendar date is set to these dates by default. Optionally, you can customize the selectable dates by specifying the date values for the MaxDate and MinDate properties.

The default control displays the dates for one calendar month at a time. Optionally, multiple calendar months can be displayed at a time by setting either the MonthCols or MonthRows to an integer value greater than one. For more information on multiple calendar views and their layout, see Multiple Calendar View.

The control supports many types of dates, which are described in the following table:

Type of date Description
DisplayDate Gets or sets the selection for the first month view. To visually differentiate between the display date and other dates, the display date's appearance can be unique from the other type of dates. The display date's appearance can be customized using its property styles.
DisabledDates This is the date or date ranges that the user choose to disable a date or dates on the calendar. To visually differentiate between the disabled date and other dates, the disabled date's appearance is unique from the other type of dates. The disabled date's appearance can be customized using its property styles.
SelectedDate, SelectedDates This is the date (SelectedDate) or date ranges (SelectedDates) that the user chooses to specify a selected date(s) on the calendar. To visually differentiate between the selected date and other dates, the selected date's appearance is unique from the other type of dates. The selected date's appearance can be customized using its property styles.
See Also