WebGrid.SelectedIndex Property
Gets or sets the index of the selected row relative to the current page of the WebGrid instance.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Property SelectedIndex As Integer
Get
Set
'Usage
Dim instance As WebGrid
Dim value As Integer
value = instance.SelectedIndex
instance.SelectedIndex = value
public int SelectedIndex { get; set; }
public:
property int SelectedIndex {
int get ();
void set (int value);
}
member SelectedIndex : int with get, set
function get SelectedIndex () : int
function set SelectedIndex (value : int)
Property Value
Type: System.Int32
The index of the selected row relative to the current page.
Remarks
The SelectedIndex property specifies the selected row in the current page of the WebGrid instance. It is not possible to select an index outside the current page, and row selection is not persisted across browser refreshes.