6 Replies Latest reply on May 11, 2006 8:17 PM by isml

    Do you have met problems when add dynamic columns to DataGrid in Flex 1.5?

      I use the following codes to add new Column:

      for(var i = 0;...........)
      var newColumn = new DataGridColumn();
      DataGrid.addColumnAt(i, newColumn);

      Most of time, such codes work well.But sometimes the newColumn's width stragely becomes 0.
      I tried to set the width:
      newColumn.width = 60;
      But i found it had no effect.

      Something wrong?

      Thanks in advance.