Data Model Flex



    
        
            import mx.collections.ArrayCollection;
            private function creationCompleteHandler(event:Event):void {
                var array:Array = new Array({city: "A", state: "CA",population: 3},
                                            {city: "B", state: "NY",population: 8},
                                            {city: "C", state: "IL",population: 2},
                                            {city: "D", state: "PA",population: 1});
                var collection:ArrayCollection = new ArrayCollection(array);
                grid.dataProvider = collection;
            }