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?
Hello,
The following case was created regarding this issue: CAS-52570-9M3Z8Z
Please let us know if you any other questions.
Hi,
Okay, I tried it with TextRenderingMode set to GDI and now I see the same problem. It's possible that this is some limitation of GDI text rendering, but that seems very unlikely - it's probably a bug.
I'm going to forward this thread over to Infragistics Developer Support so they can check it out.
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.
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?
I didn't set anything related to that and I don't see it the same as yours, but I use a style library. Try to create one and apply it to your application.