Base Combo BoxEnforce Default Selection Property
This property is used to set or get the default selection behavior
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
In DropDownList mode, if this property is true (the default), a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by the DefaultSelection property is used instead. For the DropDown and Simple modes, this property is ignored as values can be entered that are not in the list of valid items.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public override bool EnforceDefaultSelection { get; set; }VB
Public Overrides Property EnforceDefaultSelection As Boolean
Get
SetC++
public:
virtual property bool EnforceDefaultSelection {
bool get () override;
void set (bool value) override;
}F#
abstract EnforceDefaultSelection : bool with get, set
override EnforceDefaultSelection : bool with get, setProperty Value
BooleanIn DropDownList mode, if this property is true (the default), a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by the DefaultSelection property is used instead. For the DropDown and Simple modes, this property is ignored as values can be entered that are not in the list of valid items.