System.Web.UI.WebControls.GridView.SelectedRow Property

Gets a reference to a System.Web.UI.WebControls.GridViewRow object that represents the selected row in the control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public virtual GridViewRow SelectedRow { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When a row is selected in a System.Web.UI.WebControls.GridView control, use the GridView.SelectedRow property to retrieve the System.Web.UI.WebControls.GridViewRow object that represents that row.

Note:

This is the same as retrieving the System.Web.UI.WebControls.GridViewRow object at the index specified by the GridView.SelectedIndex property from the GridView.Rows collection.

This object can then be used to access the properties of the selected row.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0