RowIndex Property

GridViewRow.RowIndex Property

 

Gets the index of the GridViewRow object in the Rows collection of a GridView control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual int RowIndex { get; }

Property Value

Type: System.Int32

The index of the GridViewRow object in the Rows collection of a GridView control.

Use the RowIndex property to determine the index of the GridViewRow object in the Rows collection of a GridView control.

System_CAPS_noteNote

This property applies only to data rows.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft