Skip to main content
A newer version of this page is available. .

CalendarControlBase.SelectionMode Property

Gets or sets whether a single date, or multiple dates can be simultaneously selected.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DefaultValue(CalendarSelectionMode.Single)]
[DXCategory("Behavior")]
public CalendarSelectionMode SelectionMode { get; set; }

Property Value

Type Default Description
CalendarSelectionMode **Single**

The selection mode.

Available values:

Name Description
Single

End-user is allowed to select a single date only.

Multiple

Multiple dates can be selected.

Remarks

Use the CalendarControlBase.SelectedRanges to access the selected dates.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectionMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also