DxDataGrid<T>.RowEditStartAsync Event

Occurs when the edit form is opened to edit a data row and allows you to await handler execution without blocking the Data Grid.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public Func<T, Task> RowEditStartAsync { get; set; }

Parameters

Type Description
T

The data item type.

Remarks

The RowEditStartAsync event occurs when a user clicks the Edit button in a command column or you call the StartRowEdit(Object) method.

Handle this event to perform actions before a user starts to edit a data row. For instance, use this event to load additional row-related information asynchronously.

<DxDataGrid DataAsync="@ForecastService.GetForecastAsync" 
            RowEditStartAsync="@OnRowEditStart" ...>
</DxDataGrid>
...
@code {
    async Task OnRowEditStart(WeatherForecast dataItem) {
        // your code
    }
}
See Also