Back to Devexpress

RangeControl.AllowSelection Property

windowsforms-devexpress-dot-xtraeditors-dot-rangecontrol-76833fc6.md

latest1.7 KB
Original Source

RangeControl.AllowSelection Property

Gets or sets whether the range selection feature is enabled.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowSelection { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property AllowSelection As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if range selection is enabled; otherwise, false.

|

Remarks

The AllowSelection property specifies whether it is allowed to select data ranges with a mouse or in code. Set this property to false if you want to prohibit range selection. In this case, an end-user cannot select ranges with the mouse, and you cannot use the RangeControl.SelectedRange property to select ranges in code.

See Also

SelectedRange

RangeControl Class

RangeControl Members

DevExpress.XtraEditors Namespace