Base Combo BoxDefault Selection Property
This property is used to set or get the default selection's index
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
In DropDownList mode, if EnforceDefaultSelection is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by this 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 int DefaultSelection { get; set; }VB
Public Overrides Property DefaultSelection As Integer
Get
SetC++
public:
virtual property int DefaultSelection {
int get () override;
void set (int value) override;
}F#
abstract DefaultSelection : int with get, set
override DefaultSelection : int with get, setProperty Value
Int32In DropDownList mode, if EnforceDefaultSelection is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by this 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.