2 Replies Latest reply on Jun 25, 2007 12:54 PM by flashgruven

    DataGrid Height - set dynamically in ActionScript

    flashgruven Level 1
      When a DataGrid is set dynamically at runtime using an XML source, how do you set the height of the DataGrid to show all the items?

      I've tried:

      myDataGrid.height = myXML.items.length * myDataGrid.rowHeight;

      The DataGrid is always about 1 pixel tall (showHeaders is false)

      TIA,
      George