ComponentOne Calendar for ASP.NET: Calendar Behavior > Calendar Dates

Calendar Dates

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

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 display for the first day of the week day is Sunday, but it can be changed to any week day, selecting a different day from the FirstDayOfWeek property.

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 current display month. 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. For more information on this, see Day 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. For more information on this, see Day 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. For more information on this, see Day Styles.


Date Format Pattern

Selected Dates

Disabled Dates

Custom Dates


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.