<mx:AdvancedDataGrid id="myAdg" width="100%" height="100%" displayItemsExpanded="true">
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{list}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="areaName" />
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn headerText="所属分区" width="100" dataField="areaName"/>
<mx:AdvancedDataGridColumn headerText="经销商名称" width="160" itemRenderer="mx.controls.Label" dataField="lineName"/>
<mx:AdvancedDataGridColumn headerText="经销商编号" width="100" dataField="lineSn"/>
<mx:AdvancedDataGridColumn headerText="地址" width="180" itemRenderer="mx.controls.Label" dataField="address"/>
<mx:AdvancedDataGridColumn headerText="级别" width="100" dataField="level"/>
<mx:AdvancedDataGridColumn headerText="人数" width="90" dataField="peopleNum"/>
</mx:columns>
</mx:AdvancedDataGrid>
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{list}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="areaName" />
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn headerText="所属分区" width="100" dataField="areaName"/>
<mx:AdvancedDataGridColumn headerText="经销商名称" width="160" itemRenderer="mx.controls.Label" dataField="lineName"/>
<mx:AdvancedDataGridColumn headerText="经销商编号" width="100" dataField="lineSn"/>
<mx:AdvancedDataGridColumn headerText="地址" width="180" itemRenderer="mx.controls.Label" dataField="address"/>
<mx:AdvancedDataGridColumn headerText="级别" width="100" dataField="level"/>
<mx:AdvancedDataGridColumn headerText="人数" width="90" dataField="peopleNum"/>
</mx:columns>
</mx:AdvancedDataGrid>