RadControls for WinForms

To enable selection of dates set the RadCalendar AllowSelect property to true. Set AllowMultipleSelect to true to enable more than one selection at one time.

Selecting using the keyboard

See Keyboard Navigation for a complete list of keys used to navigate RadCalendar.

Selecting using the mouse

Select a single date by clicking on it.  If AllowMultipleSelect is true, you can select multiple dates by holding the Ctrl key and clicking each date.

See the Column and Row Headers topic for how to select entire columns and rows at one time.

Selecting using the API

To select a single calendar day assign RadCalendar SelectedDate a DateTime value. To select multiple dates use the RadCalendar SelectedDates.Add() method to add DateTime values to the collection. To have more than one date in the SelectedDates collection you should set the RadCalendar AllowMultipleSelect property to true. The code snippet below shows how to select multiple date through the API.

Copy[C#] Selecting dates
radCalendar1.AllowMultipleSelect = true;
radCalendar1.SelectedDates.Add(new DateTime(2006, 10, 20, 0, 0, 0, 0));
radCalendar1.SelectedDates.Add(new DateTime(2006, 10, 19, 0, 0, 0, 0));
radCalendar1.SelectedDates.Add(new DateTime(2006, 10, 18, 0, 0, 0, 0));
Copy[VB.NET] Selecting dates
RadCalendar1.AllowMultipleSelect = True
RadCalendar1.SelectedDates.Add(New DateTime(2006, 10, 20, 0, 0, 0, 0))
RadCalendar1.SelectedDates.Add(New DateTime(2006, 10, 19, 0, 0, 0, 0))
RadCalendar1.SelectedDates.Add(New DateTime(2006, 10, 18, 0, 0, 0, 0))

You may also use the SelectedDates.AddRange() method to add an array of DateTime values:

Copy[C#] Using SelectedDates.AddRange()
radCalendar1.SelectedDate = new System.DateTime(2007, 9, 17, 0, 0, 0, 0);
radCalendar1.SelectedDates.AddRange(new DateTime[] { new DateTime(2007, 9, 17, 0, 0, 0, 0) });
Copy[VB.NET] Using SelectedDates.AddRange()
RadCalendar1.SelectedDate = New Date(2007, 9, 17, 0, 0, 0, 0)
RadCalendar1.SelectedDates.AddRange(New Date() {New Date(2007, 9, 17, 0, 0, 0, 0)})