How to set focus on radzen grid rows?

Is there a way to set focus to a grid row through code? I'd like focus to be on the first row when page loads

You can use FocusAsync() method of the Element property of the DataGrid.

I assume you mean something like:

<RadzenDataGrid
  @ref="_grid">

@code{
    private RadzenDataGrid<IDictionary<string, object>> _grid;

    private async Task FocusGrid(){
        await _grid.Element.FocusAsync();
    }

}

I've tried like this (executing await _grid.Element.FocusAsync()) but it does not seem to do anything

Meant to reply to this