ObjectList::SelectedIndex Property
.NET Framework (current version)
Returns the index of the selected item. The default value is -1. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
public: [BindableAttribute(false)] [BrowsableAttribute(false)] property int SelectedIndex { int get(); void set(int value); }
| Exception | Condition |
|---|---|
| Exception | |
| ArgumentOutOfRangeException | the value is less than zero or larger than or equal to the number of items in the list. |
Multiple selections are not supported. Set this property to -1 to clear the selection.
.NET Framework
Available since 1.1
Available since 1.1
ObjectList Class
System.Web.UI.MobileControls Namespace
Creating Custom Mobile Controls
Introduction to the ObjectList Control
Show: