Export (0) Print
Expand All

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.

NoteNote

This property applies only to data rows.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft