The DataGrid widget can highlight the focused row. To enable this feature, set the focusedRowEnabled option to true.
To focus a row programmatically, specify the focusedRowKey option. In the UI, users can click a row to focus it. To focus a row in code, specify the focusedRowKey option. The widget automatically scrolls to the focused row if the autoNavigateToFocusedRow option is enabled. The focused row is saved in the widget's state.
In this demo, the row with the
117 key is focused initially. You can specify the
autoNavigateToFocusedRow options via the input field and the checkbox below the widget.