PowerWEB LiveControls for ASP.NET
SelectedIndex Property
See Also  Send comments on this topic.
Dart.LiveControls Namespace > LiveRadioButtonColumn Class : SelectedIndex Property



Gets or sets the lowest ordinal index of the selected items in the list.

Syntax

Visual Basic (Declaration) 
Public Property SelectedIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As LiveRadioButtonColumn
Dim value As Integer
 
instance.SelectedIndex = value
 
value = instance.SelectedIndex
C# 
public int SelectedIndex {get; set;}
C++/CLI 
public:
property int SelectedIndex {
   int get();
   void set (    int value);
}

Property Value

The lowest ordinal index of the selected items in the list. The default is -1, which indicates that nothing is selected.

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeExceptionThe index was set to less than -1, or greater than or equal to the number of items on the list.

Remarks

Use this property to determine the index of the currently selected item in the list if the list control allows only one selection. If the list control supports multiple selections, use this property to determine the lowest index of the selected items.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.2
© 2012 Dart Communications. All Rights Reserved.