Use to set options
<?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" width="200" /> <mx:DataGridColumn dataField="Price" headerText="List Price" /> </mx:columns> </mx:DataGrid> </mx:Application>