Back to Devexpress

ASPxGridBase.BatchUpdate Event

aspnet-devexpress-dot-web-dot-aspxgridbase-9094983e.md

latest3.6 KB
Original Source

ASPxGridBase.BatchUpdate Event

Occurs after an end-user clicks the Update button in batch edit mode and allows you to provide a custom data updating mechanism.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxDataBatchUpdateEventHandler BatchUpdate
vb
Public Event BatchUpdate As ASPxDataBatchUpdateEventHandler

Event Data

The BatchUpdate event's data class is ASPxDataBatchUpdateEventArgs. The following properties provide information specific to this event:

PropertyDescription
DeleteValuesReturns a list of deleted values.
HandledSpecifies whether the ASPxGridBase.BatchUpdate event is handled.
InsertValuesReturns a list of inserted values.
UpdateValuesReturns a list of updated values.

Remarks

The batch edit mode allows modifying a batch of grid data on the client side and sending it to the server in one request on clicking the Update button. You can use the BatchUpdate event to provide a custom data update mechanism.

Set the ASPxDataBatchUpdateEventArgs.Handled event argument property to true to indicate that the BatchUpdate event is handled, and therefore no default processing is required.

The ASPxDataBatchUpdateEventArgs.DeleteValues, ASPxDataBatchUpdateEventArgs.InsertValues, and ASPxDataBatchUpdateEventArgs.UpdateValues properties return lists of deleted, inserted, and updated values respectively.

View Example: ASPxGridView - A simple Batch Editing implementation

See Also

Batch Edit Mode

Card View

Online Demo: Card View - Batch Editing and Updating

Grid in Batch Edit Mode

Grid View

Online Demo: Grid - Batch Editing and Updating

Batch Edit Mode

Vertical Grid

Online Demo: Vertical Grid - Batch Editing and Updating

ASPxGridBase Class

ASPxGridBase Members

DevExpress.Web Namespace