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: #11857
Issue description
Button and combobox types rows/columns and ColumnHeader/RowHeader in the DataGridView control have incorrect colors
Steps to reproduce
- Create a WinForms .NET Core application with DataGridView control.
- Enable DarkMode by
Application.SetColorMode(SystemColorMode.Dark)
in program.cs file. - Add different types of columns to the DataGridView, such as button, checkbox and combobox.
- Run the application.
- Observe the result.