When I have right aligned columns, there doesn't appear to be any space between the text and the right border of the cell. I can increase the CellPadding, but to get any visible separation from the border requires a value that noticeably increases the size of the cell. I'm using GDI rendering. I think this is a bug, but is there any way to get some padding on the right side without inflating the entire cell since the other borders seem to have adequate padding as is?
I use right aligned columns and there is some space exactly as left aligned. What version do you use? Can you post a picture demonstrating it?
I'm using 10.2 on Windows 7. A picture is attached.
Hi,
I tried this out and I see a space on the right, also. This may be influenced by any number of factors, like the appearances you are using, the font, and the TextRenderingMode. Ultimately, the grid is using either GDI or GDI plus to draw the text, so this is probably the behavior of Windows rather than something specific to the grid.
I'm sure you could work around it using a CreationFilter to shift the UIElements within the cell. But that's not an ideal workaround, since the cell won't know about the extra space and auto-sizing won't work properly.
There may be a better, easier way - but without being able to duplicate the behavior, it's really hard to say. Can you post a small sample project demonstrating this so I can take a look?
The grid is set to GDI text rendering. I looked at the CellAppearance at runtime and the only non-default values are TextHAlign (Right) and TextVAlign (Middle). It will be a few days until I can create a sample project.
Hello,
The following case was created regarding this issue: CAS-52570-9M3Z8Z
Please let us know if you any other questions.