This documentation is archived and is not being maintained.

ListViewEditEventArgs::NewEditIndex Property

Gets the index of the item that is being edited.

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

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

Property Value

Type: System::Int32
The index of the item that is being edited.

Use the NewEditIndex property to determine the index of the item that is being edited. The item index is often used to retrieve this item from the Items collection of the ListView control, which enables you to access the item's properties.

The following example shows how to use the NewEditIndex property to retrieve the ListViewItem object that is being edited. This code example is part of a larger example provided for the ListViewEditEventArgs class.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: