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)
Not applicable.
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. |
Note: