ASP.NET ComboBox - Set Selected Items

SelectedIndexes="3,4,5"
  SelectedValue="ANATR,ALFKI,AROUT"
  Item.Selected = true;


The ComboBox control provides multiple ways to set the initial selected items (for multi-item selection):
  • SelectedIndexes - the comma separated indexes of the items to be selected.
  • SelectedValue - the values of the items to be selected (the values need to be separated
    using the character specified in the MultiSelectionSeparator property - comma by default).
  • Selected - this is a property of the ComboBoxItem class. If set to true, the item will be selected.



« Back to examples