DxDataGrid<T>.RowEditCancelAsync Event
Occurs when the edit form closes and discards changes. Allows you to await handler execution without blocking the Data Grid.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v22.1.dll
Declaration
[Parameter]
public Func<Task> RowEditCancelAsync { get; set; }
Remarks
Important
The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.
The RowEditCancelAsync event occurs when a user clicks the Cancel button in the edit form or you call the CancelRowEdit() method.
Handle this event to perform actions before the edit form is closed. For instance, hide additional information that you loaded in the RowInsertStartAsync or RowEditStartAsync event handlers.
<DxDataGrid DataAsync="@ForecastService.GetForecastAsync"
RowEditCancelAsync="@OnRowEditCancel" ...>
...
</DxDataGrid>
...
@code {
async Task OnRowEditCancel() {
// your code
}
}