This documentation is archived and is not being maintained.
ListControl.SelectedItem Property
.NET Framework 1.1
Gets the selected item with the lowest index in the list control.
[Visual Basic] Public Overridable ReadOnly Property SelectedItem As ListItem [C#] public virtual ListItem SelectedItem {get;} [C++] public: __property virtual ListItem* get_SelectedItem(); [JScript] public function get SelectedItem() : ListItem;
Property Value
A ListItem that represents the lowest indexed item selected from the list control. The default is a null reference (Nothing in Visual Basic).
Remarks
If the list control allows only a single selection, use this property to get the individual properties of the selected item. If the list control allows multiple selections, use this property to get the properties of the lowest indexed item selected from the list control.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
ListControl Class | ListControl Members | System.Web.UI.WebControls Namespace | ListItem | RadioButtonList
Show: