We have a XamDataGrid in our application that displays first and last names. We have found that when we run at a DPI of 125% (or any DPI that is not an even multiple of 100%), the XamDataGrid does not display the last letter of certain names. However, if we reduce the width of the column to require wrapping, when the name wraps, the missing letters appear. But when the width is expanded again, the missing letters disappear. I have not yet been able to reproduce this problem in a sandbox project.
Have you seen this problem before? Do you know what settings might be causing this? And do you have any suggestions for how we might fix this? I have included a screen shot with names Bob Johnson and Ben Peterson. The XamDataGrid truncates these names to Bo Johnso and Be Peterson. The screen shot illustrates how this looks normally and when the columns have changed to force wrapping.
I have been investigating into this behavior that you are reporting, and before I go about creating a sample project to try to reproduce this on my end, would it be possible for you to please confirm the version of Infragistics for WPF controls that you are using in this case? The reason I ask is that there was an optimization to the XamDataGrid cells in version 2017.2 that modified the SimpleTextBlock used in the cell templates to use a GlyphRun instead of FormattedText. You can read about this optimization here.
I know that I have answered another forum thread that we have together that suggests that you are using version 16.2.20162.2045, in which case this optimization would not be present, but I would just like to verify this.
Please let me know if you have any other questions or concerns on this matter.
Thank you for getting back to me. You are correct. We are using version 16.2.
I have created a simple sample XamDataGrid project against version 16.2.20162.2045 and used the same data that you have provided above with "Ben Peterson" and "Bob Johnson." In doing so, when testing against DPI levels of 125%, 150%, and 175%, I cannot seem to reproduce the behavior that you are seeing.
It is worth noting that the XamDataGrid in this sample project is likely much less complex than the one in your project, and so I am attaching the sample I used to test this. Would it be possible for you to please run this sample project on your machine? If it works correctly in different DPI settings, this indicates something specific to the code of your application as the cause, in which case, would it be possible for you to please modify the sample project I sent you and send it back such that it reproduces the issue? Alternatively, if you have an isolated sample project of your own that reproduces this, would it be possible for you to attach it here?
Thank you. I have also been unable to reproduce the problem in a sandbox project, but also unable to prevent it in our application. I will keep picking at it and see if I can figure out what settings are triggering the problem. I was hoping perhaps you had seen this before and might know. I will send you a sample if I can reproduce it in a simpler project.
Thank you for your update. It is unfortunate that you are currently unable to reproduce this behavior in a sandbox application, and unfortunately we have not seen this behavior before to my knowledge.
I will continue to monitor this forum thread for your next update. Please let me know if I may be of further assistance on this matter.