# .NET MAUI DataGrid Keyboard Support on WinUI

The [Telerik UI for .NET MAUI DataGrid](https://www.telerik.com/maui-ui/documentation/controls/datagrid/overview) provides keyboard navigation support on `WinUI`.

While applying part of the keyboard keys, you can also change the current cell behavior of the DataGrid component. For more details, see the article on [setting the .NET MAUI DataGrid cells](https://www.telerik.com/maui-ui/documentation/controls/datagrid/cells/current-cell).

The following table lists the actions and keyboard combinations that are available in the DataGrid:

| Hotkey Combinations    | Action                                                                                                                   |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `Left Arrow`           | Focuses the next cell on the left. When using single selection mode, the selection also changes.                         |
| `Right Arrow`          | Focuses the next cell on the right. When using single selection mode, the selection also changes.                        |
| `Up Arrow`             | Focuses the next cell above. When using single selection mode, the selection also changes.                               |
| `Down Arrow`           | Focuses the next cell below. When using single selection mode, the selection also changes.                               |
| `F2`                   | Puts the current cell in edit mode.                                                                                      |
| `Enter`                | Selects the next or previous row. When the cell is in edit mode, the changes are committed and the next row is selected. |
| `Esc`                  | Cancels the editing of the current cell.                                                                                 |
| `PageUp`               | Focuses the first cell of the viewport.                                                                                  |
| `PageDown`             | Focuses the last cell of the viewport.                                                                                   |
| `Home`                 | Focuses the first cell of the selected row.                                                                              |
| `End`                  | Focuses the last cell of the selected row.                                                                               |
| `Ctrl` + `Home`        | Focuses the first cell of the DataGrid.                                                                                  |
| `Ctrl` + `End`         | Focuses the last cell of the DataGrid.                                                                                   |
| `Ctrl` + `Left Arrow`  | Focuses the cell at the beginning.                                                                                       |
| `Ctrl` + `Right Arrow` | Focuses the next cell on the right.                                                                                      |
| `Ctrl` + `Up Arrow`    | Focuses the cell at the beginning. When using single selection mode, the selection also changes.                         |
| `Ctrl` + `Down Arrow`  | Focuses the last cell. When using single selection mode, the selection also changes.                                     |
| `Tab`                  | Focuses the next cell. When in edit mode, the next cell editor is focused.                                               |
| `Shift` + `Tab`        | Focuses the previous cell. When in edit mode, the previous editor is focused.                                            |

## Keyboard Navigation When Editing Cells

When entering the data grid edit mode, the keyboard navigation is different from the navigation when the data grid is in read-only mode. The following table summarizes the keyboard navigation when editing cells:

| Column Type | Editor          | Keyboard Navigation                                                                      | Details                                                                |
| ----------- | --------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Boolean     | `CheckBox`      | To change the state of the checkbox cell, use the `Space` key.                           | -                                                                      |
| Date        | `RadDatePicker` | To open the picker drop-down use the `Space` key. To select a date, use the `Enter` key. | \[DatePicker Keyboard Navigation]\(%slug datepicker-keyboard-support%) |
| Time        | `RadTimePicker` | To open the picker drop-down use the `Space` key. To select a time, use the `Enter` key. | \[TimePicker Keyboard Navigation]\(%slug timepicker-keyboard-support%) |
| ComboBox    | `RadComboBox`   | To open the combobox drop-down use the `Enter` key.                                      | \[ComboBox Keyboard Navigation]\(%slug combobox-keyboard-support%)     |

## Additional Resources

* [.NET MAUI DataGrid Product Page](https://www.telerik.com/maui-ui/datagrid)
* [.NET MAUI DataGrid Forum Page](https://www.telerik.com/forums/maui?tagId=1801)
* [Telerik .NET MAUI Blogs](https://www.telerik.com/blogs/mobile-net-maui)
* [Telerik .NET MAUI Roadmap](https://www.telerik.com/support/whats-new/maui-ui/roadmap)

## See Also

* [Sorting Telerik UI for .NET MAUI DataGrid Records](https://www.telerik.com/maui-ui/documentation/controls/datagrid/sorting)
* [Filtering .NET MAUI DataGrid Records](https://www.telerik.com/maui-ui/documentation/controls/datagrid/filtering/overview)
* [Styling the Appearance of the DataGrid](https://www.telerik.com/maui-ui/documentation/controls/datagrid/theming-and-styles/styling)
