4 Replies Latest reply on Aug 11, 2008 4:34 PM by 123qweads

    Add dinamically a column with AC

    123qweads
      Hi at all!!

      I've a datagrid with a dataprovider binded to AC...
      How can I add dinamically a column??

      This is an exemple:
      <mx:ArrayCollection id="_hello" />
      _hello.source = anarraythatlikeyou;
      <mx:DataGrid id="myDG" dataProvider="{_hello}"

      I've tried .push method with _hello.source and myDG.columns and nothing is happened..
      I've tried .add method with _hello but this way add a new rows, but doesn't add a new columns...

      I've try .concat method, but it is a failure...

      can you put me on correct way??

      thanks! ^__^