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

DateNavigator.SelectionBehavior Property

Gets or sets a mode for selecting dates by dragging over them.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v21.1.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Scheduler

Declaration

[DefaultValue(CalendarSelectionBehavior.OutlookStyle)]
[DXCategory("Behavior")]
public CalendarSelectionBehavior SelectionBehavior { get; set; }

Property Value

Type Default Description
CalendarSelectionBehavior **OutlookStyle**

A CalendarSelectionBehavior enumeration member that specifies the selection mode.

Available values:

Name Description
Simple

Does not automatically extend the selection to the week’s start and end.

OutlookStyle

Selects entire weeks

Remarks

When dragging over the dates, the CalendarSelectionBehavior.OutlookStyle selection mode (default) selects entire weeks. The CalendarSelectionBehavior.Simple selection mode does not automatically extend the selection to the week’s start and end.

OutlookStyle Simple
DateNavigator_Selection_Outlook DateNavigator_Selection_Simple

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectionBehavior 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