Grid Flex



    
  
    
      import mx.events.CollectionEvent;
      import mx.messaging.messages.AsyncMessage;
      import mx.messaging.events.MessageEvent;
      import mx.collections.ArrayCollection;
      [Bindable]
      private var myData:ArrayCollection = new ArrayCollection(
        [{name:"A", sales:5.00},
         {name:"B", sales:8.00},
         {name:"C", sales:2.00}]);
         
      private function initApp():void
      {
        myData.addEventListener(CollectionEvent.COLLECTION_CHANGE, syncClients);
      }
      private function syncClients(event:Event):void
      {
        myData.removeEventListener(CollectionEvent.COLLECTION_CHANGE, syncClients);
        myData.addEventListener(CollectionEvent.COLLECTION_CHANGE, syncClients);
      }