Skip to content

V9 Datagrid TabIndex - Help #33883

Answered by ValentinaKozlova
mrmwink asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mrmwink,
By default, tabbing behavior in a DataGrid does not automatically handle navigation between cells or rows unless explicitly configured.
In Fluent UI's DataGrid, this behavior can be controlled using the focusMode property on DataGridCell and utilities like useArrowNavigationGroup or useFocusableGroup. These tools are designed to manage keyboard navigation within the grid, ensuring that focus moves logically between cells and rows.
Try set focusMode="group" for cells containing Input components.

<DataGridCell focusMode="group">
    <Input tabIndex={0} />
</DataGridCell>

useArrowNavigationGroup hook ensures that arrow keys and Tab behave as expected, moving focus between cells…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tudorpopams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants