Gets or sets the index of the selected item in the DropDownList control.
Assembly: System.Web (in System.Web.dll)
abstract SelectedIndex : int with get, set override SelectedIndex : int with get, set
Use the property to programmatically specify or determine the index of the selected item from the DropDownList control. An item is always selected in the DropDownList control. You cannot clear the selection from every item in the list at the same time.
The indexes for the items in the DropDownList control are zero-based.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.