Spread Windows Forms 15.0
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcComboBox Class / SelectedIndex Property


In This Topic
    SelectedIndex Property (GcComboBox)
    In This Topic
    Gets or sets an int value indicates the zero-based index of selected item in the dropdown list.
    Syntax
    'Declaration
     
    
    Public Property SelectedIndex As Integer
    'Usage
     
    
    Dim instance As GcComboBox
    Dim value As Integer
     
    instance.SelectedIndex = value
     
    value = instance.SelectedIndex
    public int SelectedIndex {get; set;}

    Property Value

    An System.Int32 value.
    The defalut is -1.
    Remarks
    This property indicates the zero-based index of the currently selected item in the combo box list. Setting a new index raises the SelectedIndexChanged event. To deselect the currently selected item, set the SelectedIndex to -1. You cannot set the SelectedIndex of a GcComboBox item to -1 if the item is a data-bound item.
    See Also