Your search did not match any results.

Data Grid - Row Selection

In this demo, the DataGrid allows users to select only one row at a time. To enable this mode, set the selection.mode property to "single". You can click a row to select it, and Ctrl+Click to unselect it. Focus the component's data cells with the arrow keys, Tab, Shift+Tab, Home, and End, and press Space to select a row. Use Ctrl+Space to unselect the selected row.

You can access the selected row data from the onSelectionChanged function. In this demo, this function fetches the selected row's information and displays it under the grid.

Backend API