question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dataGridView doesn't respect font settings if new form's Font != DefaultFont

See original GitHub issue

—UPD— Clarifications: https://github.com/dotnet/winforms/issues/3033#issuecomment-689333353

  • .NET Core Version: 3.1.2

  • Have you experienced this same bug with .NET Framework?: Yes, must set font of the form != DefaultFont

Problem description: dataGridView doesn’t respect font settings in Styles (DefaultCellStyle, ColumnHeadersDefaultCellStyle...): Snipaste_2020-04-02_17-00-10

Expected behavior: dataGridView must respect font settings.

Windows 7 x64.

Minimal repro: WinFormsCoreTest3.zip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:29 (29 by maintainers)

github_iconTop GitHub Comments

3reactions
SergeySmirnov-Akveloncommented, Jul 16, 2020

Also, during testing, I found that changing the form’s Font - will delete ColumnHeadersDefaultCellStyle and RowHeadersDefaultCellStyle

@RussKie, @kirsan31 , the https://github.com/dotnet/winforms-designer/issues/2153 is filed to address the this issue. /cc: @merriemcgaw

2reactions
merriemcgawcommented, Sep 9, 2020

Shoot - I’m sorry. I must have gotten my wires crossed. I’ll reopen. I don’t know if we have time to get it into 5.0 RC2 or not, but we can investigate the runtime portion. I’ll also update the title to make it clear. Sorry for the confusion!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataGridView no longer resets fonts for customized cell ...
When the ambient font changes, DataGridView no longer resets default cell style fonts to match the ambient font if the cell style font...
Read more >
I want to change font style of my whole grid, not just one cell.
hi , i am using the following code for the change of the Font according to the standard Font stored in DB(which is...
Read more >
WinForms DataGridView font size
Click the ellipsis on DefaultCellStyle, then it will present Cell Style Builder window which has the option to change the font size. Its...
Read more >
GridView doesn't resize rows if the font size is increased in ...
I have a gridview with a memoedit. In my grid's RowCellStyle event, I have some debug code. If a number is even, make...
Read more >
Editing Controls - Balsamiq for Desktop Documentation
Learn how to edit and format UI controls in Balsamiq for Desktop.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found