CalendarControlBase.SelectionBehavior Property

Gets or sets whether calendar date ranges are selected strictly from day to day being clicked, or through the entire weeks containing those days.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v20.1.dll


public CalendarSelectionBehavior SelectionBehavior { get; set; }
Public Property SelectionBehavior As CalendarSelectionBehavior

Property Value

Type Default Description


A CalendarSelectionBehavior enumeration value that specifies how an end-user selects date ranges.


If multiple dates can be selected simultaneously (see CalendarControlBase.SelectionMode), the SelectionBehavior property allows you to specify whether an end-user selects date ranges strictly from day to day being clicked (the default simple style), or the selection is automatically extended through the entire weeks containing those days (the Outlook-inspired style). See the figures below.

CalendarControlBase_SelectionBehavior_Simple CalendarControlBase_SelectionBehavior_Outlook

See Also