ComponentOne List for WinForms
C1.Win.C1List Namespace / C1List 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 (C1List)
    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