question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Accessibility] Narrator focuses on the Column Headers instead of the first cell when enter DataGridView by switching Form

See original GitHub issue

.NET version

8.0.100-alpha.1.22430.2

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, it is a regression issue, cannot repro .Net 6.0, for 7.0 version,

Issue description

Narrator focuses on the Column Headers instead of the first cell when enter DataGridView by switching Form. If application has one Form with DataGridView, Narrator focuses on the entire DataGridView instead of first cell

Actual Gif: 2 Forms: image DataGridView_NarratorFocus 1 Form: image

Expected Gif from .Net 6.0: 2 Forms: image DataGridView_NarratorFocus_6 0 gif

1 Form: image

Steps to reproduce

  1. Create a Winforms .Net Core application, Form1 with DataGridView added
  2. Add several columns in DataGridView
  3. Add a Form2 to this project, and add a button to Form2
  4. Double click button to generate event with following code
            Form1 form1 = new Form1();
            form1.ShowDialog();
  1. Set Form2 as start form, build and run application

or use attached sample application for testing DataGridViewSample.zip

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MelonWang1commented, Sep 22, 2022

@NikitaSemenovAkvelon Verified this issue in the latest .Net 8.0 SDK build: 8.0.100-alpha.1.22470.29, In Win11 21H2(OS Build 22000.856), this issue fixed and result same with you. But in Win10 21H2(OS Build 19044.2006), this issue not fixed and result as above mine attached.

0reactions
NikitaSemenovAkveloncommented, Sep 21, 2022

I’ve retested it from main branch. Below described my steps and a result. It works as expected.

  1. Started the application.
  2. Pressed enter.
  3. Watched how Narrator announced all controls up to the selected cell. Rqi3JpCDYA
Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new in accessibility in .NET Framework
Accessibility features let an app provide the right experience for Assistive ... Narrator can now focus on an empty DataGridView control.
Read more >
[Accessibility] Change DataGridView's Row/Column ...
We need to change DataGridView's Row/Column counting with starting at 1, not 0 ... Narrator, Inspect focus on the first DataGridView cell, ...
Read more >
How to prevent datagridview from selecting the first cell as ...
What worked for me was to clear the selection and then set the row based on the row index. Hope this helps. GridView.ClearSelection()...
Read more >
Real-world learnings on keyboard accessibility in ...
This article discusses some real-world bugs relating to the keyboard accessibility of apps built using WinForms and WPF UI.
Read more >
Selection in Windows Forms DataGrid (SfDataGrid)
Windows forms datagrid showing single mode cell selection ... in a datagrid can be selected by interacting with an intuitive check box in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found