The DevExpress ASP.NET Grid View (ASPxGridView) provides different data editing options so that you can create web applications that effectively address the needs of your end-users.
This demo illustrates four built-in grid data Edit Modes. Use the Edit Mode combo box to select the desired edit mode.
-
Inline - Cell values are edited within the in-line edit row.
-
EditForm - Cell values are edited via the edit form. The data row currently being edited is not displayed.
-
EditFormAndDisplayRow - Cell values are edited via the edit form. The data row currently being edited is displayed above the edit form.
-
PopupEditForm - Cell values are edited via the popup edit form.
- Batch - Cell values are edited in the in-line editors. The changes are sent to the server upon a Save changes button click only.
The following members can be used to manipulate data.
To allow end-user modification, add a Command column to the view's Columns collection and specify the commands that can be used by end-users. There are six command items.
- New
- Edit
- Delete
- Select
- Update
- Cancel
A command item is displayed as a link by default. It can also be displayed as a button or image. The type of a command item rendered is specified by the ButtonType property of the column.
Note: The KeyFieldName property must be specified to enable data edit, insert and delete operations.