2 Replies Latest reply on Feb 10, 2009 4:56 PM by _Zakaria

    Displaying an  Array stocked in an ArrayCollection in a Datagrid

    _Zakaria
      Hi everybody!
      I'l trying to display some data, in a DataGrid stocked in ArrayCollection:
      //dataGrid: Datagrid id
      //arrayCollection: ArrayCollection id
      dataGrid.dataProvider = arrayCollection;

      But the problem is that in arrayCollection, i've put an Array whose id is myArray:
      for (i=0;i<10;i++){
      myArray = ("a"+i,"b"+i);
      arraCollection.addItem(myArray);
      }

      By running that, the grid is empty!
      So, my question is:
      How can I displat myArray items that are in arrayCollection?

      Thank you!