How can I make datagrid height is equal to data content in Adobe Flex

apache-flex, datagrid, flex3

Solution

You can set each row of the datagrid to fit based on the contents of a particular column of that row by setting the "variableRowHeight" attribute to true on the datagrid and setting the "wordWrap" attribute to true on the dataGridColumn that will contain the variable height content.

Problem

In adobe Flex datagrid height is equally to fix height . I want to make datagrid height is depend data .

Original source