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.

GridViewEditEventArgs::NewEditIndex Property

 

Gets or sets the index of the row being edited.

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

public:
property int NewEditIndex {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The index of the row being edited.

Use the NewEditIndex property to determine the index of the row being edited. 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 NewEditIndex property to determine the index of the row being edited.

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