dotnet / dotnet/winforms

[HDPI] The default Image Icon of DataGridView Image column is not scaled well on 300% primary screen

Open
#8,254 0 comments 0 reactions 0 assignees View on GitHub
area-controls-DataGridView area-HDPI-SA
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

.NET 8.0.100-alpha.1.22565.7

### Did it work in .NET Framework?

No

### 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

The default Image Icon of DataGridView Image columns is 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/203456895-79382b00-d577-495e-b183-626001ddca34.png)

On 175% primary screen:
![image](https://user-images.githubusercontent.com/26474449/203456981-550f78d2-2d0a-496a-8b1c-72693352984f.png)

On 100% DPI:
![image](https://user-images.githubusercontent.com/26474449/203457210-4411f771-6315-4f09-9660-895f2e612600.png)

### Steps to reproduce

Use this sample application to run on High DPI system setting:
[DataGridViewSample.zip](https://github.com/dotnet/winforms/files/10072419/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.