flex data grid visibility when empty
I have data grid that measures the height according to the rows it has, but i need to disappear/ make invisible when i have no data, so the head开发者_Python百科er will not just appear alone.
Check your dataProvider each time it's updated. If after update it's empty, then set your DataGrid
visible
(and in case of need includeInLayout
) property to false
. Set it back to true
when on update dataProvider has soma data again.
精彩评论