<mx:DataGrid id="dgContainer" allowMultipleSelection="true" left="10" right="10" bottom="20" top="40" itemClick="dgContainer_itemClick()" dataProvider="{xmlData.row}">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="Name"/>
<mx:DataGridColumn headerText="Description" dataField="Description"/>
<mx:DataGridColumn headerText="Price" dataField="Price"/>
<mx:DataGridColumn headerText="Container" dataField="Container"/>
<mx:DataGridColumn headerText="Serves" dataField="Serves"/>
<mx:DataGridColumn headerText="LowCarb" dataField="LowCarb"/>
</mx:columns>
</mx:DataGrid>
在多选的时候按Ctrl+点击实现多行选取