Skip to content

[Dark Mode] The color contrast for selected DataGridViewTextBox is insufficient #13780

Open

Description

@Amy-Li03

.NET version

.NET 10 SDK build: 10.0.100-rc.1.25401.103

Did it work in .NET Framework?

Not tested/verified

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

Occurs when DarkMode feature involved

Issue description

When the application is in Dark Mode, the color contrast of DataGridViewTextBox is insufficient.
This issue does not occur in Classic Mode.

Image

Steps to reproduce

  1. Create Winforms .NET application with targeting .NET 10
  2. Add a DataGridView control with DataGridViewTextBoxColumn in form designer
  3. Set app under Dark mode in program.cs file:
#pragma warning disable WFO5001
      Application.SetColorMode(SystemColorMode.Dark);
#pragma warning restore WFO5001
  1. Build and run project
  2. Input something in DataGridViewTextBox, then select this cell
  3. Observe the color contrast between selected DataGridViewTextBox's Text color and Back color

Activity

  1. added
    untriaged
    area-DarkMode
    on Aug 5, 2025
  2. self-assigned this
    on Aug 8, 2025
  3. removed
    untriaged
    on Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-DarkMode

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions