Base Combo Box ColumnEnforce Default Selection Property
This is used to get or set whether or not the combo box should enforce a default selection
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
In DropDownList mode, if this property is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by the DefaultSelection property is used instead. For DropDown mode, this property is ignored as values can be entered that are not in the list of valid items. The default is false to mimic the behavior of the normal DataGridViewComboBoxColumn.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public bool EnforceDefaultSelection { get; set; }VB
Public Property EnforceDefaultSelection As Boolean
Get
SetC++
public:
property bool EnforceDefaultSelection {
bool get ();
void set (bool value);
}F#
member EnforceDefaultSelection : bool with get, setProperty Value
BooleanIn DropDownList mode, if this property is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by the DefaultSelection property is used instead. For DropDown mode, this property is ignored as values can be entered that are not in the list of valid items. The default is false to mimic the behavior of the normal DataGridViewComboBoxColumn.