Gets or sets the selected indices of C1ComboBox.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
public ArrayList SelectedIndices { get; set; }
Visual Basic (Declaration)
Public Property SelectedIndices As ArrayList
	Get
	Set

Examples

Copy CodeC#
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