我有一个这样的 AdvancedDataGrid 集:
<mx:AdvancedDataGrid variableRowHeight="true" id="dg_groupArticolo"
treeColumn="{gc_idarticolo}"
folderClosedIcon="{null}"
folderOpenIcon="{null}"
defaultLeafIcon="{null}"
includeInLayout="{pm.isGridVisibleArticoli}"
visible="{pm.isGridVisibleArticoli}"
width="85%"
height="100%">
<mx:dataProvider>
<mx:HierarchicalData source="{pm.masterDataArticoli}"/>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn id="gc_idarticolo" dataField="idArticolo" headerText="{resourceManager.getString(WOConst.BUNDLE_BACKORDER,'dg_articolo')}" width="120"/>
<mx:AdvancedDataGridColumn dataField="descrizioneArticolo" headerText="{resourceManager.getString(WOConst.BUNDLE_BACKORDER,'dg_descrizione')}" width="200" />
<mx:AdvancedDataGridColumn dataField="qtaDaSpedire" headerText="{resourceManager.getString(WOConst.BUNDLE_BACKORDER,'dg_qtaDaSpedire')}" width="100" />
<mx:AdvancedDataGridColumn dataField="" />
</mx:columns>
<mx:rendererProviders>
<mx:AdvancedDataGridRendererProvider depth="2" columnIndex="1" renderer="it.softway.wo.view.comp.BackOrderDetailGridRenderer_Ordine" columnSpan="0" />
</mx:rendererProviders>
</mx:AdvancedDataGrid>
我的问题是子部分总是占用 6 行,不包括副标题行,无论其中实际有多少项目:如果子部分的项目少于 6 个,则剩余的行为空,而如果它有超过 6 个显示垂直滚动条。是否可以设置网格,以便始终使用所需的最少行且没有垂直滚动条来显示子项?
使用 Flex SDK 3.2。
谢谢,马里奥