Grid Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
     
         
        import mx.collections.ArrayCollection; 
        
        [Bindable] 
        private var dpHierarchy:ArrayCollection = new ArrayCollection([ 
        {Region:"Southwest", children: [ 
            {Region:"Arizona", children: [ 
                {Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000}, 
                {Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}]}, 
                {Region:"Central California", children: [ 
                    {Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}]}, 
                    {Region:"Nevada", children: [ 
                        {Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}]}, 
                        {Region:"Northern California", children: [ 
                            {Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000}, 
                            {Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000}]}, 
                            {Region:"Southern California", children: [ 
                                {Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000}, 
                                {Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}]} 
            ]} 
        ]);
      
    

    
        
                            childrenField="categories" />
        

        
            
                            headerText="Territory Rep" />