如何在Flex中创建DataGrid?

时间:2011-04-20 12:33:08

标签: flex4 flex-datagrid

有人能告诉我如何在flex数据网格中创建嵌套行,如下图所示? enter image description here

2 个答案:

答案 0 :(得分:1)

只需使用AdvancedDataGrid控件即可。请参阅descriptionAPI documentation

答案 1 :(得分:0)

<mx:AdvancedDataGrid id="mainADG"  >
<mx:groupedColumns>
    <mx:AdvancedDataGridColumn />
    <mx:AdvancedDataGridColumn />
    <mx:AdvancedDataGridColumn />

    <mx:AdvancedDataGridColumnGroup >
        <mx:AdvancedDataGridColumn />
        <mx:AdvancedDataGridColumn />
        <mx:AdvancedDataGridColumn />
        <mx:AdvancedDataGridColumn />
    </mx:AdvancedDataGridColumnGroup>

</mx:groupedColumns></mx:AdvancedDataGrid>