Hi, I have an xml document that has the following form
<categories> <category id="123" name="abc> <products> <product id="123" name="def"> <price>12.54</price> </product> <product id="345" name="ghi"> <price>12.54</price> <desc>description</desc> </product> </products> </category> <category id="123" name="abc> <products> <product id="123" name="def"> <price>12.54</price> </product> <product id="345" name="ghi"> <price>12.54</price> <desc>description</desc> </product> </products> </category> </categories> I am trying to bind this to a data grid, in which the columns are the categoy name and price of each product in the category. My question is how do I specify the reference to a specific product in DataGridColumn? If someone has an example, I would love to see it. the following is the basic grid that I have <mx:DataGrid id="display" width="100%" height="30%" dataProvider="{category.items}" rowCount="10"> <mx:columns> <mx:Array> <mx:DataGridColumn columnName="name" headerText="Category"/> </mx:Array> </mx:columns> </mx:DataGrid> Thanks. - viraf