BaseComboBoxColumnEnforceDefaultSelection Property
This is used to get or set whether or not the combo box should enforce a default selection
Namespace: EWSoftware.ListControls.DataGridViewControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public bool EnforceDefaultSelection { get; set; }
Public Property EnforceDefaultSelection As Boolean
Get
Set
public:
property bool EnforceDefaultSelection {
bool get ();
void set (bool value);
}
member EnforceDefaultSelection : bool with get, set
Property 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.