ComponentOne ComboBox for ASP.NET Web Forms
C1.Web.Wijmo.Controls.4 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBoxItemCollection Class / SelectedIndices Property
Example

In This Topic
    SelectedIndices Property
    In This Topic
    Gets or sets the selected indices of C1ComboBox.
    Syntax
    'Declaration
     
    Public Property SelectedIndices As System.Collections.ArrayList
    public System.Collections.ArrayList SelectedIndices {get; set;}
    Example
    C1ComboBox c = new C1ComboBox();
    c.Items.Add(new C1ComboBoxItem("test1"));
    c.Items.Add(new C1ComboBoxItem("test2"));
    c.SelectionMode = C1ComboBoxSelectionMode.Multiple;
    ArrayList indicesToSelect = new ArrayList();
    indicesToSelect.Add(0);
    indicesToSelect.Add(1);
    c.SelectedIndices = indicesToSelect;
    See Also