Set an Array element to the child tag of the tag
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:DataGrid> <mx:ArrayCollection> <mx:Object Artist="A" Price="11.99" Album="aa" /> <mx:Object Artist="B" Album="bb" Price="11.99" /> </mx:ArrayCollection> <mx:columns> <mx:DataGridColumn dataField="Album" /> <mx:DataGridColumn dataField="Price" /> </mx:columns> </mx:DataGrid> </mx:Application>