ESRI.ArcGIS.ADF.Web.UI.WebControls
SelectedIndex Property
See Also 
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.")>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<ResCategoryAttribute("DropDownBox")>
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.")]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[ResCategoryAttribute("DropDownBox")]
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.

See Also

© 2010 All Rights Reserved.