0 Replies Latest reply on Apr 16, 2007 7:26 AM by ljonny18

    Adding Objects

    ljonny18 Level 1
      Hi

      I have a flex application containing 2 objects (each containing different data - but have the same structure).

      I am currently using these 2 objects as 2 separate dataProviders for 2 separate datagrids etc....
      However
      I want to collate these two objects and use them together to populate just one dataGrid.....

      I have tried the following (with no success):SUMMERISED CODE
      ---
      [Bindable]
      public var struct1:Object;
      [Bindable]
      public var struct2:Object;
      [Bindable]
      public var struct3:Object;
      ---
      struct3 = struct1&struct2;
      ---
      <mx:DataGrid dataProvider="{struct3}">
      ---
      etc........

      Does anyone have any ideas how I can put the tow objects together to create one dataProvider containing date from both of them????

      Thanks,
      Jon.