April 17th, 2007 by Kyle
Tags: ActionScript, as3, component, components, datagrid, dataprovider, Flex, mxml, vertical-lines
Posted in: ActionScript, Flex
If in the dataGrid control you set showHeader = false and if the dataProvider has no items in it, then the vertical column lines don’t show up.
The vertical column separator lines only appear when the dataProvider has items populating the grid (or if there is no data and showHeader=true).
In the Datagrid code, drawing the vertical column separator lines is keyed off of the listData, which would have a “row 0†containing the header row if the headers where to be visible.
The solution to this is to extend the datagrid and override the drawLinesAndColumnBackgrounds method in which you can iterate over the column array rather than the listItems to draw the vertical lines.
Tweet
No Comments »

Recent Comments