Skip to content

DataGridView sends unnecessary event to screen readers on every cell change. #12867

@trypsynth

Description

@trypsynth

.NET version

9.1.00

Did it work in .NET Framework?

Not tested/verified

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

No response

Issue description

I have this simple Windows Forms app using DataGridView. Every time I press an arrow key to move to a different cell, using either NVDA or Narrator, after reading all of the correct information about the cell, the screen reader will say "edit", for seemingly no reason.

public class Form1 : Form {
	private DataGridView gridView;

	public Form1() {
		Text = "Periodic Table";
		ClientSize = new Size(1000, 600);
		gridView = new DataGridView {
			AllowUserToAddRows = false,
			AllowUserToDeleteRows = false,
			AllowUserToOrderColumns = false,
			AllowUserToResizeColumns = false,
			AllowUserToResizeRows = false,
			ColumnCount = 18,
			RowCount = 11,
			Dock = DockStyle.Fill,
			ReadOnly = true,
			RowHeadersVisible = true,
			ColumnHeadersVisible = true
		};
		Controls.Add(gridView);
	}

	[STAThread]
	public static void Main() {
		ApplicationConfiguration.Initialize();
		Application.Run(new Form1());
	}
}

Steps to reproduce

  1. Run the demo app from above with a screen reader active.
  2. Press the arrow keys to move around the grid.

Metadata

Metadata

Labels

🚧 work in progressWork that is current in progresstenet-accessibilityMAS violation, UIA issue; problems with accessibility standardswaiting-author-feedbackThe team requires more information from the author

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions