Hi,
I use an UltroGrid of virtual mode. I noticed that the texts in some cells were truncated and it seemed the space was large enough for the whole text. I have a column with its data type of double, TextHAlign of right and format of "#,##0.00;(#,##0.00)". The digit at the hundredths place in the attached image is missing. Is there any way to avoid this?
Regards,Shaolin
Hi Shaolin,
The text in UltraGrid cells is not truncated when I set the relative column data type to double, TextHAlign to right and format to "#,##0.00;(#,##0.00)" . I tested this with 16.1. Please try to reproduce this behavior in the attached sample and send it back to us and we will further look into this issue as soon as we receive it.
Please let me know if you have any questions.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Hi Sahaja,
Thanks so much for your sample app and your response!
I modified your Form1.cs file a little. You need to resize the column to see the issue and please look at the attached screen image. There is too much space wasted with the cell left padding. I noticed there were some discussions on padding but I do not totally agree with the answers. I also noticed that no partial letter is displayed inside a cell. Is there an option or setting to control where a letter of digit can be displayed partially?
Your help is greatly appreciated!
Thanks,Shaolin
I was not able to attached two files. The modified file Form1.cs is attached.
I am sending you another image and that is what we would like to have. The letter E of cell text "A&E" is partially displayed and the first 3 of "3,331.02" is also partially displayed.
Sahaja,
Thanks so much for your help!
Best regards,Shaolin
You can set the Col0 TextTrimming property to None if you want to show its text completely. I tested this with your Form1.cs and it is working for me. In your application, if the text is clipped even after setting the TextTrimming to None then please reproduce this issue in a sample and send it to me and I can further look into it.
Please check the attached link to read more about TextTrimming property.
http://help.infragistics.com/doc/WinForms/2016.1/CLR4.0/?page=Infragistics4.Win.v16.1~Infragistics.Win.TextTrimming.html
Sincerely,
Sahaja Kokkalagadda
Hi sahaha,
Thanks for your investigation!
I changed the code as you suggested but I did not notice any improvement. I made some of data in column "Col0" same as I used before and the same column width. They were shown exactly the same with or without TextTrimming and all the numbers were truncated. Please note my "Col0" is your "Col1" in your provided sample.
Could you please give me some more suggestions?
The space you are seeing with the cell left padding is because of the masked characters in that cell.
You can use TextTrimming property to partially display the cell text. For example you can do something like this this.ultraGrid1.DisplayLayout.Bands[0].Columns["Col1"].CellAppearance.TextTrimming = Infragistics.Win.TextTrimming.Character;
Please let me know if I may be of further assistance.