Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Header caption text rendering
posted

Hello

I'm having issues on how the header text in the datagrid is being rendered. It looks like the characters in the text are not getting enough space between each other (see attached)

I'm using netAdvange 2010.2 for winforms. Visual studio 2008 and the target framework is .net 2.0

When i had this problem before with labels i just used:

label1.FlatStyle = System.Windows.Forms.FlatStyle.System;

label1.UseCompatibleTextRendering = true;

And then the label text would render fine. I just don't know how to set that property for the WinGrid header text.

 

Thanks

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    All of our Windows Forms controls expose a TextRenderingMode property, which provides a way to select between GDI and GDI+. Note that this setting will affect all text rendering in the grid, not just column headers.

Children