This demo describes the ASPxGridView's built-in edit modes.
Use the 'Edit Mode' combo box to select the edit mode you desire.
The KeyFieldName property must be specified to enable data editing/inserting/deleting operations.
The following members can be used to manipulate data:
-
StartEdit() - starts editing.
-
UpdateEdit() - saves changes.
-
CancelEdit() - cancels changes.
-
AddNewRow() - adds a new row.
-
DeleteRow() - deletes a row.
To allow end-users to manipulate data, add a Command column to the view's Columns collection and specify which commands can be used by end-users. There are six command items:
- New
- Edit
- Delete
- Select
- Update
- Cancel
By default, a command item is represented by a link. It can also be represented by a button or image.
Its representation is specified by the column's ButtonType property.