Base Combo Box ColumnDefault Selection Property
This property is used to set or get the default selection's index
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
If EnforceDefaultSelection is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by this property is used.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public int DefaultSelection { get; set; }VB
Public Property DefaultSelection As Integer
Get
SetC++
public:
property int DefaultSelection {
int get ();
void set (int value);
}F#
member DefaultSelection : int with get, setProperty Value
Int32If EnforceDefaultSelection is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by this property is used.
Exceptions
| ArgumentOutOfRangeException | This is thrown if the index is less than zero |