Mega Code Archive
Setting up the AdvancedDataGrid with dataField and headerText
import mx.collections.ArrayCollection;
public var myAC:ArrayCollection = new ArrayCollection([
{category:"C1", food:"a"},
{category:"C1", food:"b"},
{category:"C2", food:"c"}]);