ASP.NET ComboBox - Set Selected Item

SelectedIndex="2"
  SelectedValue="ALFKI"
  Item.Selected = true;


The ComboBox control provides multiple ways to set the initial selected item:
  • SelectedIndex - the index of the item to be selected.
  • SelectedValue - the value of the item to be selected.
  • Selected - this is a property of the ComboBoxItem class. If set to true, the item will be selected.



« Back to examples