dotnet / dotnet/winforms

[Dark Mode] Some rows/columns and ColumnHeader/RowHeader in the DataGridView control have incorrect colors

Open
#11,893 3 comments 0 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
:construction: work in progress area-DarkMode
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

.NET SDK 9.0.100-rc.1.24415.1 + build private dll form winforms repo release/9.0 branch

### Did it work in .NET Framework?

No

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

This is a new feature Dark Mode: https://github.com/dotnet/winforms/pull/11857

### Issue description

Button and combobox types rows/columns and ColumnHeader/RowHeader in the DataGridView control have incorrect colors
![image](https://github.com/user-attachments/assets/ca4045e7-b243-4b62-8715-0b0fc63135ce)

### Steps to reproduce

1. Create a WinForms .NET Core application with DataGridView control.
2. Enable DarkMode by `Application.SetColorMode(SystemColorMode.Dark)` in program.cs file.
3. Add different types of columns to the DataGridView, such as button, checkbox and combobox.
4. Run the application.
5. Observe the result.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.