Use groupedColumns component to group columns together
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
public var myAC:ArrayCollection = new ArrayCollection([
{dest:'A', min:'4 mins', max:'9 mins'},
{dest:'B', min:'6 mins', max:'1 mins'},
{dest:'C', min:'2 mins', max:'6 mins'}]);
</mx:Script>
<mx:AdvancedDataGrid dataProvider="{myAC}" width="300">
<mx:groupedColumns>
<mx:AdvancedDataGridColumn dataField="dest" headerText="Destination" />
<mx:AdvancedDataGridColumnGroup headerText="Commute Time">
<mx:AdvancedDataGridColumn dataField="min" headerText="Min" />
<mx:AdvancedDataGridColumn dataField="max" headerText="Max" />
</mx:AdvancedDataGridColumnGroup>
</mx:groupedColumns>
</mx:AdvancedDataGrid>
</mx:Application>
Related examples in the same category