dotnet / dotnet/wpf

Regarding Keyboard Arrow Navigation Not Working Properly with Custom Editor in DataGrid Cell Template

Open
#10,531 7 comments 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

Regarding when the DataGrid loads a custom editor into the cell template, performing navigation using the keyboard (such as the left or right arrow keys) does not work properly.

**

[Sample.zip](https://github.com/user-attachments/files/19069849/Sample.zip)

**
Start the application with MainWindow2 in App.xaml.cs. Here, the editor is used without the DataGrid, and it works properly there.

For your reference attached the sample please review it.

### Reproduction Steps

**Run the sample.**
Try to enter content into the editor.

![Image](https://github.com/user-attachments/assets/4b53092b-8f35-4e58-b986-dd6d7fae5c5f)

Try to navigate the cursor using the right/left arrow keys.
For your reference, the replication procedure video is attached.

### Expected behavior

The cursor should move based on keyboard navigation.

### Actual behavior

The cursor doesn't move based on navigation.

### Regression?

_No response_

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.