<mx:HBox width="100%" height="90%" paddingLeft="4" paddingRight="4" paddingBottom="4" paddingTop="4"> <mx:DataGrid id="leftDg" width="45%" height="100%" dataProvider="{_allMenuArray}" dragEnabled="true" allowMultipleSelection="true" > <mx:columns> <mx:DataGridColumn headerText="菜单名称" dataField="menuName" width="150"> <mx:itemRenderer> <mx:Component> <mx:Label text="{data.menuName}" selectable="true"/> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> <mx:DataGridColumn headerText="菜单描述" dataField="menuDesc"> <mx:itemRenderer> <mx:Component> <mx:Label text="{data.menuDesc}" selectable="true"/> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid>
</mx:HBox>