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; }
System.Web.UI.WebControls.IDataBoundListControl.SelectedIndex
 Property SelectedIndex As Integer Implements IDataBoundListControl.SelectedIndex

Property Value

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