aspnet-devexpress-dot-web-dot-aspxgridview-cf4f8161.md
Saves all the changes made and switches the ASPxGridView to browse mode.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public void UpdateEdit()
Public Sub UpdateEdit
End-users can update the edited row by clicking the Update command item.
This example demonstrates how to place multiple grid controls in a callback panel and use a custom button to update the grids simultaneously:
Follow the steps below to update multiple grid controls on a custom button click:
Create the Grid View controls and wrap them in a callback panel.
Handle the grid’s server-side CommandButtonInitialize event. In the handler, hide the grid’s default Update and Cancel command buttons.
Create custom Update and Cancel buttons and set their AutoPostBack property to false. In the button’s Click event handler, call the callback panel’s PerformCallback method and pass the button type as a parameter.
Handle the callback panel’s server-side Callback event. In the handler, call the grid’s UpdateEdit() method to update data or CancelEdit() method to discard changes.
See Also