11/10/2010 5:24:32 PM
Title:
Flex AdvancedDataGridColumnGroup...
I have an ADG with 2 columns. The two columns have a common column group. Simple enough. However, the height of each column is 50 to hold a large font. I am noticing that the group height above the two columns is the same 50 high. I want it to be 10 high. How do I achieve this?
11/11/2010 12:03:41 AM
check these links to set variable row height
http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/
http://www.flex888.com/712/datagrid-with-flexible-row-height.html
11/11/2010 8:16:51 AM
Thanks! That works great for the rows of data but I'm looking to change the height of the grouped header above the normal header. You can set the height of the header easily but if you are using grouped columns, they seem to share the same height.
Take a look at the image at this link. http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_09.html
You can see the text "Revenues" happens to be the same height as the text "Actual" and "Estimate" below it. If you set the headerHeight to 100, all three would be 100 high. I have large text in the lower box and small text in the upper box but I can't seem to separate the heights.
11/11/2010 9:54:25 AM
there is no direct method for this, The solution could be to extend the advancedDataGrid and override the function in the class which setts the row height for grouped fields.
11/11/2010 10:19:03 AM
Thanks! I've looked at the datagrid source and the heights (non-group, group) are all tied together which means you can't do it with the stock datagrid.