0 Replies Latest reply on May 14, 2008 11:26 PM by jlopes151

    Sizing a Datagrid at runtime

      I need to calculate the size of a Datagrid at runtime. I have the number of rows from my dataprovider. So I then need to calc headerHeight + rowHeight = DGHeight. Reason the DG is in a component in its own .mxml. So as the dg grows I'll need to expand its .mxml height a Canvas. It is then a component member of a main .mxml as <mx:myDGComp width="somesize" height="sizeunknown">. The effect I'm going for is as the DG grows it causes vertical scrolling my client saw this on another site and wants it.

      Thanks for th help