ObjectList.SelectedIndex Property


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.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public int SelectedIndex { get; set; }

Property Value

Type: System.Int32

The index of the selected item.

Exception Condition

an attempt to clear this property was made while the ViewMode property was not set to List.


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

ObjectList Class
System.Web.UI.MobileControls Namespace
Creating Custom Mobile Controls
Introduction to the ObjectList Control

Return to top