dotnet / dotnet/winforms

[HDPI] From the second row, DataGridView rows are not scaled well on 300% primary screen

Open
#8,259 1 comment 0 reactions 0 assignees View on GitHub
area-controls-DataGridView area-HDPI-SA
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET 8.0.100-alpha.1.22565.7

### Did it work in .NET Framework?

Yes

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

No, it also repro on .NET 6.0 & 7.0.

### Issue description

From the second row, DataGridView rows are not scaled well on High Dpi system setting when application is in SystemAware or PerMonitorV2 mode

On 300% primary screen:
![image](https://user-images.githubusercontent.com/26474449/203461444-31c64093-398e-4b25-b521-8d2917110189.png)

On 175% primary screen:
![image](https://user-images.githubusercontent.com/26474449/203461587-1c6c9b79-3260-44c0-b8b4-5e9390d158a5.png)

On 100% DPI:
![image](https://user-images.githubusercontent.com/26474449/203463356-2af25584-8f41-4a11-8dfb-c8b0b736b237.png)

### Steps to reproduce

Use this sample application to run on High DPI system setting:
[DataGridViewSample.zip](https://github.com/dotnet/winforms/files/10072643/DataGridViewSample.zip)

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.