In PowerBuilder 10.5, the Height.Autosize property can be set on any band of a DataWindow. In earlier PowerBuilder releases, this property was available only for the Detail band.
Restrictions on the Height.Autosize property
The Height.Autosize property is not supported on DataWindows with Graph, Label, OLE, or Rich Text presentation styles.
Nested report overflow to the next page is supported in Detail bands only.
Bands cannot be autosized if autosizing would preclude the display of at least one Detail band row per page.
Selecting the Height.Autosize property sets the minimum height for the band, allowing it to display the entire content of a picture or a nested report. You can select this property on the General tab of the Properties view for a DataWindow band. At runtime you can modify the Height.Autosize property for a DataWindow band in PowerScript®:
dw_2.modify ("DataWindow.header.height.autosize=yes")
dw_2.modify ("DataWindow.footer.height.autosize=no")
For more information, see the description of Bandname.property in the DataWindow Reference or the online Help.