Tag Archives: alternatingItemColors

Toggling a DataGrid control’s horizontal grid lines and vertical grid lines

OK, this is a pretty neat trick. Flex makes it pretty easy to customize the look and feel of the DataGrid. For example, the following code lets you toggle the data grid’s horizontalGridLines and verticalGridLines styles on or off, change the alternating row background colors so each row is a plain white, and sets the horizontalGridLineColor and verticalGridLineColor styles to red.

Full code after the jump.

Continue reading Toggling a DataGrid control’s horizontal grid lines and vertical grid lines