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 ,
Yes you are right this post is going into our of sequence, and post are having issues uploading images and all.
For now you may create a private case to workaround this post issues.
Now regarding keeping GDI plus font and not having this text shifting issue , i dont see any way to workaround it ,so i logged a bug 35084 and linked with your private case 'C-00240272' for the developer to have a look and confirm with my finding. he will either provide you the workaround or the solution of the issue with the supported version V24.1/24.2.
You can access the private case from your infragistics accounts support section.
Thank you. Let me know if you have any further question or concern on this matter.
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;
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
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