Hi Alberto,
Greetings from Syncfusion.
Query: I have to create a page that contains a main grid and make sure that the arrow keys allow the selection to be changed without the user first selecting the grid.
We have validated your query and you want to change the selection of the record(row) without user manually selecting the grid at initial. You can achieve your requirement by using SelectedRowIndex property of the grid. By using this property, the provided row index in the grid is initially selected while rendering. After that you can change the selected row by using arrow keys. Please find the below code example and sample for your reference.
[code example]
...
<EjsGrid @ref="@Grid" DataSource="@Orders" AllowSelection="true" SelectedRowIndex="0">
<GridColumns>
...
</GridColumns>
</EjsGrid>
@code{
...
}
|
Please get back to us if you need further assistance.
Regards,
Rahul