GridView.EditIndex Property
Assembly: System.Web (in system.web.dll)
/** @property */ public int get_EditIndex () /** @property */ public void set_EditIndex (int value)
public function get EditIndex () : int public function set EditIndex (value : int)
Property Value
The zero-based index of the row to edit. The default is -1, which indicates that no row is being edited.Use the EditIndex property to programmatically specify or determine which row in a GridView control to edit. When this property is set to the index of a row in the control, that row enters edit mode. In edit mode, each column field in the row that is not read-only displays the appropriate input control for the field's data type, such as a TextBox control. This allows the user to modify the field's value. To exit edit mode, set this property to -1.
Note |
|---|
| The GridView control has a built-in editing feature that automatically sets this property. This property is typically used only when you need to programmatically determine which row is being edited or when you are adding your own custom editing functionality to the GridView control. |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note