Q:

Flex - Vertical Align Cells in a Datagrid

I'm having trouble vertical aligning text inside cells in a DataGrid in Flex.  I tried this.setStyle("vertical-align", "middle) in an itemRenderer on the column but it doesn't seem to work... I tried verticalAlign as well.

A:

Looks like flex doesn't support it natively but I found a hack to do the job.
Make the cells inherit a Box and put a label inside the box.  Then you can set verticalAlign="middle" on the Box.

