![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
SelectedIndex Property | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > DropDownBox Class : SelectedIndex Property |
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) | ![]() |
---|---|
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;} |
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.
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