DxDataGrid<T>.RowEditCancel Event

Occurs when the edit form closes and discards changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public Action RowEditCancel { get; set; }

Remarks

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" ...>
    ...
</DxDataGrid>
...
@code {
    WeatherForecast[] forecasts;

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

    void OnRowEditCancel() {
        // your code
    }
}
See Also