I'm sure you will get some replies for this later tonight, most of us are still at work ( at least on the coast that matters ). But one warning, Flex developers are known for their ability to collect ...

It has been a busy couple of weeks and I finally got some time to look at your code. I think the approach you have taken is incorrect. But first, I think you need to decide on whether you would prefer making the font bigger vs scaling the whole grid. Keep in mind if you scale the whole grid, all of it scales including border thickness, column and row lines, graphics and icons, etc, but I don’t think it will have round-off issues like you will if you compute a fontSize. If you change fontSize the last row’s size might keep changing by a few pixels as you resize.

If you want to scale, I would first try wrapping the DataGrid in a Group with a custom layout that scaled the DataGrid.

If you want to change font size, I’m pretty sure you want to override updateDisplayList and compute the fontSize before calling super.updateDisplayList. Then the trick is to get the DG’s container to stretch the DG without recomputing the number of rows it wants to display. I would guess you can just set height=100% as well and if you change fontSize before the DG tries to recompute the number of rows, you will be ok. You might need to override measure() as well. UpdateDisplayList and measure are two of the lifecycle methods that control how the component lays out. RESIZE is sort of a notification event and mucking with fontSize there changes the measurements and therefore the layout which can then cause another RESIZE event.

I think the best solution is to keep the requestedRowCount (to display just the rows needed), and figure out (this is the problem I'm having)...

As the parent resizes, the grids (please see fxp file http://www.yozef.com/files/DataGridScaler.fxp.zip) ought to scale (scaleX & scaleY) to make sure all rows & columns are visible. Even if the resize gets too small and unreadable its fine, as long as it scales as the parent resizes to keep all rows & columns in view.

It seems there are multiple threads going on this topic so I cannot keep track. Did you post a test case that attempts to wrap the datagrid in a group and scale it? I certainly wouldn’t use Vgroup or modify the group. I would modify a Layout class.

Wow. You better send Alex the $100 just for effort. When was the last time you got that much personal attention from a Flex SDK team member? Besides, he deserves a lot more for all the help he's given us over the years.