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.v21.1.dll

Declaration

[Parameter]
public Func<Task> RowEditCancelAsync { get; set; }

Remarks

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
    }
}
See Also