BaseComboBoxColumnEnforceDefaultSelection 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: 2023.4.9.0
public bool EnforceDefaultSelection { get; set; }

Property Value

Boolean
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.

See Also