Using DataGridColumn to control column titles
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:DataGrid id="dg" width="500" height="150"> <mx:columns> <mx:DataGridColumn dataField="name" headerText="Contact Name" width="300" /> <mx:DataGridColumn dataField="email" headerText="E-Mail" width="200" /> </mx:columns> <mx:Object name="A" email="a@domain.com" /> <mx:Object name="B" email="b@domain.com" /> <mx:Object name="C" email="c@domain.com" /> </mx:DataGrid> </mx:Application>