Dpi awareness with Framework 4.8: C1FlexGrid font is not updated

Posted by: wknauf on 21 July 2021, 12:48 am EST

  • Posted 21 July 2021, 12:48 am EST

    See attached sample (.NET framework 4.8).

    To reproduce the issue, you need a recent Win10 with two screens. One screen is at 100%, the other at 125%. When the app is started (on my machine on the screen with 100%), click one of the two buttons and move the dialog form to the other screen and back.

    With AutoScaleMode = "Dpi", the grid inherits the scaled form font.

    With AutoScaleMode = "Font", the grid font does not scale, while the rest of the form changes as expected.
    At 100 percent:

    At 125 percent:

    We use "AutoScaleMode = Font", as we apply the "SystemFonts.MessageBoxFont" to our application, depending on the OS settings.

    This might be a blocker to switch our app to 4.8 dpi awareness, if there is no workaround.

    Best regards

  • Replied 21 July 2021, 6:35 pm EST

    Hi Wolfgang,

    We have reported this issue to the development team and will update you as soon as we have an update.

    In the meantime, you can use the OnDpiChanged method that you have overridden in the sample to update the font of the FlexGrid according to the form.
    Please refer to the sample attached.


    [Internal Tracking ID : C1WIN-25352]

  • Replied 21 July 2021, 6:50 pm EST

    Thanks - I came up with this workaround in the meantime. But it would be easier if the grid would handle this automatically ;-).

    Best regards

  • Replied 9 February 2022, 9:10 pm EST

    Hi C1,

    any updates on this?

    Best regards

  • Replied 10 February 2022, 1:28 pm EST


    We are getting in touch with the development team to get updates on this and will let you know as soon as we hear from them.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels