ComponentOne FileExplorer for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBox Class / SelectedIndices Property
Example

In This Topic
    SelectedIndices Property (C1ComboBox)
    In This Topic
    Gets or sets the SelectedIndices of C1ComboBox.
    Syntax
    'Declaration
     
    Public Overridable Property SelectedIndices As System.Collections.ArrayList
    public virtual 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);
    // select 2 items.
    c.SelectedIndices = indicesToSelect;
    See Also