You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Arrow navigation always prioritizes parent DataGridView control regardless of what child control is focused. #6361
Have you experienced this same bug with .NET Framework?:
Yes
Problem description:
The issue is that I cannot use arrows for navigating through any of my controls that are children to my parent DataGridView.
adding a TextBox, another DataGridView, or any control that uses the arrow keys for navigation in any way to the Controls of a DataGridView means that any use of the arrow keys causes that parent DataGridView to take priority (as if it was in focus even when it isn’t) so you cannot use the arrow keys for any children controls.
Expected behavior:
Arrow keys should control the Control that is in focus and not the parent of that control
Verified the issue with latest .NET11 11.0.0-rc.2.26453.107 + private dlls built from main branch of dotnet/winforms repro, the issue has been fixed as below screenshot.
Activity
KnightNine commentedon Dec 20, 2021
found a fix here https://stackoverflow.com/questions/43071129/handle-navigation-keys-in-textbox-inside-datagridview maybe it helps.
Zheng-Li01 commentedon Sep 4, 2026
Verified the issue with latest .NET11 11.0.0-rc.2.26453.107 + private dlls built from main branch of dotnet/winforms repro, the issue has been fixed as below screenshot.
Verify6361.zip
6361.mp4