1 Reply Latest reply on Nov 5, 2009 4:41 PM by Francisc

    DataGrid and E4X (easy)

    Francisc Level 3



      I have 2 questions:


      1. Why does this not work: <mx:DataGridColumn headerText="Continent" dataField="{data.continent}">? In order to show data I am forced to me an itemRender with a Component with a Label with the text value of {data.@continent}.


      2. The above example does not sort when pressing on the column header by data shown, but by the value of the XML element. How can I do so it sorts by data.@continent rather than just data?


      Thank you!