1 Reply Latest reply on Aug 29, 2008 5:02 AM by Newsgroup_User

    Data Grid

    rnjt_reddy
      hi all,
      i have two classes.
      class User
      {
      public String name;
      public int age;
      public Address address;
      }



      class Address
      {
      public String city;
      }

      I'm passing a List<Users> to the data provider of a data grid . I can display the values of properties of Users i.e, name and age.. My issue is how do i display the value of city which is a propertyt of Address class in the datagrid column..
      thanx in advance
        • 1. Re: Data Grid
          Level 7
          "rnjt reddy" <webforumsuser@macromedia.com> wrote in message
          news:g98a7o$23v$1@forums.macromedia.com...
          > hi all,
          > i have two classes.
          > class User
          > {
          > public String name;
          > public int age;
          > public Address address;
          > }
          >
          >
          >
          > class Address
          > {
          > public String city;
          > }
          >
          > I'm passing a List<Users> to the data provider of a data grid . I can
          > display
          > the values of properties of Users i.e, name and age.. My issue is how do i
          > display the value of city which is a propertyt of Address class in the
          > datagrid
          > column..

          Use a labelFunction.

          HTH;

          Amy