The DevExpress ASP.NET Data Grid (ASPxGridView) control allows you to edit and update multiple grid rows on the client side and send them to the server in a single request.
To enable the batch editing functionality, set the SettingsEditing.Mode property to 'Batch'. In this mode, grid data contained in a page can be edited using in-line editors. The modified cells are colored in green. Deleted rows are highlighted with gray and display the Recover command item. To hide the deleted rows from the view, set the SettingsEditing.BatchEditSettings.HighlightDeletedRows property to false. All changes are maintained on the client side until the Save changes link is clicked, or all changes are canceled by clicking the Cancel changes button.
If a grid contains modified data, it displays a confirm message before a grid callback or postback is performed.
You can customize the batch edit mode settings by using the following properties.
- The EditMode property allows you to specify which control element (data cell or data row) is used to edit data.
- The StartEditAction property specifies the action that will be used to begin editing grid data.
In this demo, use the Edit mode combo box to specify the control element used to edit data. The Start edit action combo box allows you to specify the action that should be used to begin editing grid data.