I have a DataGrid that has dynamic columns (see below). when i set
the DataGrid's variableRowHeight="true" and wordWrap="true" it resizes
tall and wraps just fine when a cell's contents are really long.
The problem is the next time the DataGrid appears when there is no
data to display it doesn't resize the row height to a normal row
height. It remains at the previous really tall height.
The fix typically for this is to set the wordWrap="true" in the
DataGridColumn tag and not in the DataGrid tag, but since i am
generating the columns dynamically, I can't do this. Any one seen
this? any fix?
thanks. pat kellogg
<mx:DataGrid
id="datagrid"
width="100%"
height="100%"
dataProvider="{report}"
variableRowHeight="true"
wordWrap="true"
columns="{DataGridColumnFactory.fromColumnGroupVOCollection(report.columns,
model.session.timezoneInfo)}"
/>