ComponentOne List for WinForms
C1.Win.C1List Namespace / DropDownList Class / SetSelected Method
The zero-based integer that identifies the row number of the control.
The boolean value indicates the status of the selection.

In This Topic
    SetSelected Method (DropDownList)
    In This Topic
    Selects or unselects a row from the code.
    Syntax
    'Declaration
     
    
    Public Sub SetSelected( _
       ByVal index As Integer, _
       ByVal value As Boolean _
    ) 
    public void SetSelected( 
       int index,
       bool value
    )

    Parameters

    index
    The zero-based integer that identifies the row number of the control.
    value
    The boolean value indicates the status of the selection.
    Remarks
    SetSelected(index, True) will select the row if it is not selected. SetSelected(index, False) will unselect the row if it is selected.
    See Also