0 Replies Latest reply on Dec 6, 2008 8:33 AM by SylarSaMa

    AdvancedDataGridColumn  Can't display the data of dataProvider

    SylarSaMa
      there is my code:

      var dataGrid_1:AdvancedDataGrid=new AdvancedDataGrid();

      var column_1:AdvancedDataGridColumn=new AdvancedDataGridColumn("name");
      var column_2:AdvancedDataGridColumn=new AdvancedDataGridColumn("money");
      var column_group:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup("group");

      column_1.dataField="a";
      column_2.dataField="b";
      column_group.children.push(column_2);

      dataGrid_1.groupedColumns=new Array(column_1,column_group);

      dataGrid_1.dataProvider=...............//The dataProvider is no problem






      My dataProvider:
      <data>
      <a>peter</a>
      <b>0 </b>

      </data>
      <data>
      <a>bob</a>
      <b>0 </b>
      </data>

      But the Column("money") in the ColumnGroup is null(blank)

      and the Column("name") is no problem.........



      How to show the data to Column in a ColumnGroup