1 Reply Latest reply on Feb 6, 2008 12:04 PM by Flex harUI

    XML and DataGrid

    josh_aries Level 1
      I am working with the XML files and here is my question.

      This is the portion of the XML file

      you can acess my xml file at http://pastebin.com/f66fd1ee3

      My XML file keeps changing and the number of action_column nodes may vary for each xml file.

      I am trying to display the xml file in the grid using


      public function LabelFunc(item:Object, column:DataGridColumn): String
      return item.action_column.(@column_number==column.dataField).@column_value;

      So is there a way to know how many action_column nodes are there and based on that can I do the datagrid dynamically?