0 Replies Latest reply on Jan 15, 2007 11:02 AM by Goldorax113

    dataGrid and Object

    Goldorax113
      Hi,

      I have got a prob with printing a collection of object ina datagrid.
      I am sorry if this subject has already been opened..

      I have got a colletion of object ( a dictionary in fact)

      my object are like this :

      package
      {

      public class Person
      {
      private var name:String;
      private var tel:String;
      private var email:String;

      public function Person(name:String, tel:String, email:String){
      this.name = name;
      this.tel = tel;
      this.email = email;
      }
      }
      }

      and I want to put these object in the datagrid, but i dont manage to...

      I have tried to convert the collection in XML

      <PersonCollection
      <Person>
      <name>toto</name>
      ....
      </Person>
      <Person>
      ...
      ...
      </Person>
      </PersonCollection>

      but it doesn't work when I want to pass it to the dataProvider...

      I have seen somethong called [Bindable] but I don't know how to use it....

      What is the easiest way to to this, I just want to copy the object collection to the dataGrid.

      Thank you very much

      regards

      Nicolas