DataGrid Explicit Columns
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Model id="contactData"> <contacts> <row> <contactid>5</contactid> <firstname>A</firstname> <lastname>B</lastname> <streetaddress>Main Street</streetaddress> <city>My City</city> <state>MS</state> <email>a@t.com</email> <phone>000-555-1111</phone> <dob>6/23/2010</dob> </row> </contacts> </mx:Model> <mx:ArrayCollection id="contactAC" source="{contactData.row}"/> <mx:DataGrid id="contactGrid" dataProvider="{contactAC}"> <mx:columns> <mx:DataGridColumn dataField="firstname" headerText="First Name" width="100"/> <mx:DataGridColumn dataField="lastname" headerText="Last Name" width="100"/> <mx:DataGridColumn dataField="email" headerText="Email Address" width="250"/> </mx:columns> </mx:DataGrid> </mx:Application>