DataGrid Column HorizontalAlignment Issue

G

Guest

I'm using GridColumnStyles to define the columns of a DataView I want
displayed. I want some of the columns to display the data as right justified.
I use the HorizontalAlignment.Right enumeration to set the alignment for the
column. All works fine except that the column descriptions are being clipped.
The last character is often not visible or only partly visible. Is there a
fix for this problem?

Thanks in advance.
 
C

ClayB [Syncfusion]

Just a simple work-around suggestion. Maybe adding a space to the HeaderText
as you set up your column styles will avoid the problem.

=========================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools
 
G

Guest

I previously tried a space but it made no difference. I've since tried adding
a period (.) at the end and that works fairly well. It's effectivenss
depends on the pixel width of the last character. In the cases I've tried the
period doesn't show but the last character does except when there is a wide
last character like 'y'. In this case part of the period shows, but only a
pixel width, so it's not too noticeable.

So is this a known issue? When it is fixed I'll just have to update the
column header text to remove my periods. Not a terrible work around.
 
G

Guest

Actually, the number of pixels lost has more to do with the location of the
column. The last column in the DataGrid loses more pixels then the others.
The period never shows when used in a right justified last column and a pixel
of it shows in the others.
 
G

Guest

It seems to be a problem only in version 1927 (SP1 ) of .net framework 1.1.
Version 1.1.4322.573 runs my testsample well.
cu stone
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top