Skip to content

[WinForms] DataGridView.CellFormatting event not raised if a tooltip is shown #15361

@RussKie

Description

@RussKie

[Change Title]

To meet accessibility standards DataGridView now shows cell's text and errors as tooltips when navigated by both mouse and keyboard (.e.g tab/arrow navigation, hotkeys).
NH5SSK7eId

Version introduced

3.1

Old behavior

Previously DataGridView would only show cell's tooltips and error text (if those were set) when navigated by mouse.
While editing a cell in a DataGridView that had ShowCellToolTips = true, CellFormatting event would be raised whenever other cells would be hovered and that did not have ToolTip property set.
otF94hrOSp

New behavior

DataGridView now shows cell's text and errors as tooltips when navigated by both mouse and keyboard (.e.g tab/arrow navigation, hotkeys).
While editing a cell in a DataGridView that had ShowCellToolTips = true, CellFormatting is no longer raised whenever other cells are hovered because the content of hovered cells is shown as tooltip.
ReproSteps gif

Reason for change

Accessibility requirements

Recommended action

Refactor the code that may have depended on CellFormatting event while DataGridView is in edit mode.

Category

  • Windows Forms

Affected APIs

"Not detectable via API analysis"


Issue metadata

  • Issue type: breaking-change

Metadata

Metadata

Assignees

Labels

breaking-changeIndicates a .NET Core breaking change

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions