GridView.IDataBoundListControl.SelectedIndex Property

Definition

Gets or sets the index of the selected row in the data-bound control.

property int System::Web::UI::WebControls::IDataBoundListControl::SelectedIndex { int get(); void set(int value); };
int System.Web.UI.WebControls.IDataBoundListControl.SelectedIndex { get; set; }
member this.System.Web.UI.WebControls.IDataBoundListControl.SelectedIndex : int with get, set
 Property SelectedIndex As Integer Implements IDataBoundListControl.SelectedIndex

Property Value

Int32

The index of the selected row in the data-bound control.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the GridView instance is cast to an IDataBoundListControl interface.

ASP.NET Dynamic Data supports this property.

Applies to