Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GridViewCancelEditEventArgs::RowIndex Property

 

Gets the index of the row containing the Cancel button that raised the event.

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

public:
property int RowIndex {
	int get();
}

Property Value

Type: System::Int32

The zero-based index of the row containing the Cancel button that raised the event.

Use the RowIndex property to determine the index of the row that contains the Cancel button clicked by the user. The row index is often used to retrieve this row from the Rows collection of the GridView control, which allows you to access the row's properties.

The following example demonstrates how to use the RowIndex property to determine the index of the row containing the Cancel button clicked by the user.

No code example is currently available or this language may not be supported.

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