Hi Surya,
Sorry, I may have described the issue badly. I have edited the sample code you provide to demonstrate my issue:
#1 - My original issue:
If I edit theline 62 from:
childGridRow1.Cells[0].Value = "toolongtofitoneline \n cat";
To:
childGridRow1.Cells[0].Value = "TooLongToFitOnOneLineWithHelveticaFont";
in the final table there is displayed only "TooLongToFitOnOneLineWith" and nothing else. This was my original issue with SyncFusion PDF library. Meanwhile I have figured out that one way to force correct word wrapping is to explicitly set the width of that column, which gets quite complicated to do with nested grids when I want some columns to be dynamic.
#2 The weird behaviour:
I have found this when I was experimenting with how to solve my original problem. If I edit the line 68 from:
childGridRow3.Cells[0].Value = "toolongtofitoneline \n cat";
To:
childGridRow3.Cells[0].Value = "TooLongToFitOneLineCourierFont";
The text is "cut off" the same as in my previous example. But when I edit that line to:
childGridRow3.Cells[0].Value = "TooLongToFitOneLineCourierFont \n cat";
It wraps only the "TooLongToFitOneLineCourierFont" correctly, but does not draw the "cat" part at all. I find it even weirder, that:
- "TooLongToFitOneLineCourierFont\n" - this is not enough to force the word wrapping
- "TooLongToFitOneLineCourierFont cat" - this is not enough to force the word wrapping
- "TooLongToFitOneLineCourierFont\ncat" - this is enough, in another words it must be the newline character plus some other character(s)
Attachment:
NestedGrid1629627736edited_80b5fcd1.zip