Hi,
You're almost there. You have the data to the DataGrid, now send it to the DataGridColumn's:
<mx:DataGridColumn headerText="Account" dataField="account"/>
-TH
--- In flexcoders@yahoogroups.com, "flxcoder" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Trying to work with Cairngorm.
>
> view.Employees.mxml has datagrid that needs to have its columns and
> data set dynamically.
>
> Now I can set the data up as ArrayCollection in the ModelLocator and
> set
> <mx:DataGrid id="dg"
> dataProvider="{ModelLocator.getInstance().employees}">
>
> How can I set up the columns for the datagrid above. Is it something
> that I can set from the Command, onResult() or externally. I guess is
> there a way to access the view.Employees.dg.columns="myColumns"
>
> Thanks.
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.