DxDataGrid<T>.RowEditCancel Event

Occurs when the edit form closes and discards changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll


public Action RowEditCancel { get; set; }


The RowEditCancel 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 RowInsertStart or RowEditStart event handlers.

<DxDataGrid Data="@forecasts" 
            RowEditCancel="@OnRowEditCancel" ...>
@code {
    WeatherForecast[] forecasts;

    protected override async Task OnInitializedAsync() {
        forecasts = await ForecastService.GetForecastAsync();

    void OnRowEditCancel() {
        // your code
See Also