When the text in a cell is truncated because the column width is too narrow, the contents of the cell move up by 1 pixel. What is the reason for this, and how can I prevent it? It just makes the grid look messy as the text in different cells is not aligned.
Hello Campbell,
Thank you for the post . May i know which version of control you are using.
In order to understand the issue i setup a grid sample against supported version V24.1 and have once long text cell value and i dont see any text moved up or have messy grid look.
So may be if you are still using V15.1, issue was with the older version which was fixed later at some point or i need more information to cover your whole scenario.
I attached my sample here please modify the sample reproducing the issue and share it back for further investigation.
Thank you.
8540.WindowsFormsApp3.zip
Hi Divya,
I am using 24.1. Your sample actually shows the issue quite well. Let me post a screenshot:
Aargh, your forum is a nightmare, none of the options work. Please take a look at http://panningforbrown.co.uk/img/cell.png
Hi. Thanks for your reply. That certainly fixes the text movement issue. However, the GDI font is not so nice to look at (it appears compressed vs the GDI Plus font). Is there a way to keep the font/appearance of the GDI Plus font, but not have this text movement issue?
(I don't know why this reply is appearing out of sequence, I replied to the message below)
Hello,
Now i understand ,but this looks like GDI issue , try this:
this.ultraGrid1.TextRenderingMode = Infragistics.Win.TextRenderingMode.GDI;