DataGrids take a dataProvider to populate them
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:DataGrid> <mx:columns> <mx:DataGridColumn headerText="Track Name" dataField="song" /> <mx:DataGridColumn headerText="Artist" dataField="artist" /> <mx:DataGridColumn headerText="Album Name" dataField="album" /> </mx:columns> <mx:dataProvider> <mx:Array> <mx:Object song="A" album="a" artist="AA" /> <mx:Object song="B" album="b" artist="BB" /> <mx:Object song="C" album="c" artist="CC" /> </mx:Array> </mx:dataProvider> </mx:DataGrid> </mx:Application>