Automatic column widths to fit contents
Posted: Mon Jul 28, 2025 10:55 pm
Hi,
I am trying to build a report that behaves like an HTML table in that all columns are lined up vertically with column headers and are sized to fit the longest text in a column (please see attached template). I have tried setting all text cells in the data band with AutoWidth=true, CanGrow=true and WordWrap=false. It does not work for me because longer texts simply overlap next cells on the right (see screenshot below). If I set DockStyle=left, things get even worse as cells are now totally misaligned vertically. Is there any way to achieve what I am looking for?
Thank you!
I am trying to build a report that behaves like an HTML table in that all columns are lined up vertically with column headers and are sized to fit the longest text in a column (please see attached template). I have tried setting all text cells in the data band with AutoWidth=true, CanGrow=true and WordWrap=false. It does not work for me because longer texts simply overlap next cells on the right (see screenshot below). If I set DockStyle=left, things get even worse as cells are now totally misaligned vertically. Is there any way to achieve what I am looking for?
Thank you!