Calculate DataGrid height
I have a dataset with more than 200 items. If I use that as dataprovider of a datagrid and set the rowcount to 10 the datagrid is not alway resizing to the right size. Sometimes I see 10.5 rows. This is a nice solution for that problem:
dataGrid.height = measureHeightOfItems(-1, dataGrid.rowCount) + dataGrid.headerHeight; |
Related posts:
About this entry
You’re currently reading “Calculate DataGrid height,” an entry on Arno Manders
- Published:
- 10.15.09 / 2pm
- Category:
- Flex, General, Programming, actionscript 3












No comments
Jump to comment form | comments rss [?] | trackback uri [?]