PDA

View Full Version : Data Grid Column question


FlashDumbDumb
04-08-2008, 07:32 PM
I have a problem with my datagrid columns populating with content.

Here's the xml structure:

<headline>Bridgeport whipper-snap</headline>
<blurb>Some text</blurb>
location_url>whipsnap.swf</location_url>
<location_url_videotype>1</location_url_videotype>
<podcast_url_videotype>2</podcast_url_videotype>
<owner id="325" name="Bridgeport" />

And here's what I'm doing:

<mx:DataGrid id="movies" dataProvider="{filterPlay}" width="650" x="50" y="100" editable="true" change="previewMovie()">
<mx:columns>
<mx:DataGridColumn dataField="headline" headerText="Movie" editable="false"/>
<mx:DataGridColumn dataField="owner.@name" headerText="Company" editable="false"/>
</mx:columns>
</mx:DataGrid>

The owner.@name won't populate the column ... nor will owner@name, or @name. How can I get the name attribute of the owner tag to populate a coulmn?

Thanks!