Burt Barrere
2011-11-28T14:33:26Z
I have an Access report that requires set column widths. How do I enable text wrapping in a cell where the text is more than the column width?
Igor/10Tec
2011-11-29T08:14:30Z
To wrap cell text in iGrid, use the igTextWordBreak flag in the CellTextFlags property.
Burt Barrere
2011-11-30T13:32:19Z
This is the code I'm using for the 2nd and 3rd columns:

.CellTextFlags(iRow, "SampleCol") = igTextWordBreak
.CellTextFlags(iRow, "SampIDCol") = igTextWordBreak

This is how the report looks. The text in the 3rd column is being cut off. The text should read, "GRAND ISLE SUB 278 HUMBLED NONE".

UserPostedImage
Igor/10Tec
2011-11-30T14:47:21Z
Setting the required text flag is a half of work - you also need to have enough row height to see the effect. In your case, I would suggest to use the AutoHeightRow method to automatically increase the row height so the full cell contents will be visible.