We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Right Align out when header bolded

Thread ID:

Created:

Updated:

Platform:

Replies:

7349 Sep 21,2003 08:58 PM Sep 22,2003 12:12 PM Windows Forms 2
loading
Tags: GridControl
IOMS
Asked On September 21, 2003 08:58 PM

Hi Clay! When I'm trying to right align columns with a text margin, the columns don't line up with the header if the header style is set to bold. I have had to add 2 pixels to the text margin for the header to make it look OK but this is obviosuly a work-around. Here is a sample app which shows the problem. Thanks, M.

Administrator [Syncfusion]
Replied On September 22, 2003 02:43 AM

Thank you for the sample. I think this is a .NET Framework glitch. Try this. Stack two labels on a form, making sure their right edges end at the same place. Then align the text in the labels to the right and bold one of the labels. I think you will see the same problem. Since the Grid relies on relies on GDI+ to do its drawing, you get the same behavior in the grid. And the degree of the problem varies from font to font. It is not too bad with Tahoma (which MS uses for most of their samples). So, your work-around seems reasonable to manage the problem for a particular font.

Administrator [Syncfusion]
Replied On September 22, 2003 12:12 PM

Attached find also a small sample program that demonstrates this problem is related to GDI+ with labels in a form. Switching the font to Tahoma fixes the issue there. Stefan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;