ESRI.ArcGIS.ADF.Web.UI.WebControls
SelectedIndex Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > DropDownBox Class : SelectedIndex Property




The index of the item selected in the DropDownBox. First item is selected by default.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("The index of the selected item.  Use -1 to specify no selection.")>
<DefaultValueAttribute()>
<ResCategoryAttribute("DropDownBox")>
<NotifyParentPropertyAttribute(True)>
Public Property SelectedIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As DropDownBox
Dim value As Integer
 
instance.SelectedIndex = value
 
value = instance.SelectedIndex
C# 
[ResDescriptionAttribute("The index of the selected item.  Use -1 to specify no selection.")]
[DefaultValueAttribute()]
[ResCategoryAttribute("DropDownBox")]
[NotifyParentPropertyAttribute(true)]
public int SelectedIndex {get; set;}

Remarks

This property may be used to set the item selected on startup of the page. It may also be used programmatically to retrieve the index of the item selected by the user at runtime.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.