1 Reply Latest reply on Nov 9, 2008 7:23 PM by atta707

    bindable dataprovider

    phil1943 Level 1
      I have a datagrid within a custom VBox component, which in turn is within a main.app
      Is it possible to create a bindable dataprovider between the main.app and the datagrid ?
      If so, how do I refer to the main.app from the datagrid ? - using a keyword such as parent ?

      thanks for any advice.
        • 1. Re: bindable dataprovider
          atta707 Level 2
          Using actionscript this should be easy. Assuming your custom component's id is 'test' and id of the datagrid in the custom component is dataGrid1, this should work:

          this.test.dataGrid1.dataProvider = you array collection;

          Now, if you are looking to achieve same this effect using MXML, you'll need to add a property on your custom component -- or use it's data property -- to pass along the array collection to the data grid.

          Is this what you're looking for?