Grid Flex


    
    xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"
    width="700">
     
         
        import mx.collections.ArrayCollection; 
        [Bindable] 
        public var initDG:ArrayCollection = new ArrayCollection([ 
            {Company: 'Acme', Contact: 'Bob Jones',Phone: '413-555-1212', City: 'Boston', State: 'MA'}, 
            {Company: 'Allied', Contact: 'Jane Smith',Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'} 
        ]); 
        [Bindable] 
        public var initDG2:ArrayCollection = new ArrayCollection([ 
            {Company: 'MyCo', Contact: 'Stan Stanley',Phone: '413-555-5555', City: 'Boston', State: 'MA'}, 
            {Company: 'YourCo', Contact: 'Dave Davis',Phone: '617-555-1212', City: 'SanFrancisco', State: 'CA'} 
        ]); 
      
    

    
        
            
                
                    AL
                    AK
                    AR
                    CA
                    MA
                

            

        
    

            dataProvider="{initDG}" editable="true">
        
            
            
            
            
                            editorDataField="selectedItem" itemEditor="{inlineEditor}" />
        

    
            dataProvider="{initDG2}" editable="true">
        
            
            
            
            
                            editorDataField="selectedItem" itemEditor="{inlineEditor}" />