This example demonstrates how to use the ASPxGridView control's batch edit mode events to update a custom object data source stored in the session.
When a Grid View is bound to an object data source at runtime, you need to implement the CRUD logic required to edit data. To do this, use one of the following options:
-
Handle the ASPxGridView's RowInserting, RowUpdating, and RowDeleting events.
This technique allows you to handle each CRUD operation type in a separate event handler.
-
Handle the BatchUpdate event.
Use this technique to process all operations in a single handler.
- Default.aspx (VB: Default.aspx.vb)
- Default.aspx.cs (VB: Default.aspx.vb)
- Batch Edit Mode
- Troubleshooting: Why the 'Specified method is not supported' and 'Updating is not supported by data source 'X' unless UpdateCommand is specified' errors occur
- Grid View for ASP.NET Web Forms - Prevent the cell edit action on the client in batch edit mode
- Grid View for ASP.NET Web Forms - Editing an in-memory dataset
(you will be redirected to DevExpress.com to submit your response)