Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataGridView control has an extra scrollbar when adding a new column in DemoConsole application #12796

Open
Philip-Wang01 opened this issue Jan 16, 2025 · 5 comments
Assignees
Labels
area-DesignerSupport area-HDPI HDPI, not specific to Dpi mode of app untriaged The team needs to look at this issue in the next triage

Comments

@Philip-Wang01
Copy link
Contributor

.NET version

main branch of WinForms repo

Did it work in .NET Framework?

Not tested/verified

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

This is not a regression issue. Also reproduced on the release/9.0 branch.

Issue description

DataGridView control has an extra scrollbar when adding a new column in DemoConsole application.

testdatagridviewscrollbar.mp4

Steps to reproduce

1: Open the test sample: DemoConsole in Winforms repo.
2: Switch to the TabControl and TableLayoutPanel tabpage and select the DataGridView control in the lower right corner.
3: First add a column via “Add Column...”. Then add a column via "Edit Columns...".

More Info:
The scrollbar disappears when you resize the DataGridView control.

@Philip-Wang01 Philip-Wang01 added area-DesignerSupport untriaged The team needs to look at this issue in the next triage labels Jan 16, 2025
@Tanya-Solyanik
Copy link
Member

Tanya-Solyanik commented Jan 21, 2025

@Philip-Wang01 - do you see the same in the OOP designer when creating a NET10 app that runs on the latest build from winforms main?

@Philip-Wang01
Copy link
Contributor Author

@Tanya-Solyanik The situation you describe is not reproduced. This issue is only reproduced in the DemoConsole application.

@merriemcgaw
Copy link
Member

merriemcgaw commented Jan 22, 2025

@Philip-Wang01 can you please verify whether this happens in .NET 8? Can we also confirm whether that 'extra scrollbar' is a visual artifact or it works. @Olina-Zhang, let's create another issue to make this DemoConsole application multi-targeted to Framework so that we can validate where we've got regressions from NetFX. @ricardobossan - feel free to pick up this issue.

@ricardobossan ricardobossan self-assigned this Jan 22, 2025
@Philip-Wang01
Copy link
Contributor Author

@merriemcgaw The DemoConsole application for .NET 8.0 does not have DataGridView control. It has been verified that this is an HDPI issue that cannot be reproduced at 100% screen resolution. Since this is a design page, the scrollbars don't work properly.

@Philip-Wang01 Philip-Wang01 added the area-HDPI HDPI, not specific to Dpi mode of app label Jan 23, 2025
@Olina-Zhang
Copy link
Member

@merriemcgaw @ricardobossan another issue for DemoConsole app multi-targeted: #12830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DesignerSupport area-HDPI HDPI, not specific to Dpi mode of app untriaged The team needs to look at this issue in the next triage
Projects
None yet
Development

No branches or pull requests

5 participants