This content has been marked as final. Show 3 replies
- create new component that extend dataGrid class
- override drawRowBackground http://livedocs.adobe.com/flex/2/langref/mx/controls/DataGrid.html#drawRowBackground()
I think it's easier to use AdvancedDataGrid. It has style named alternatingItemColors.
Type: Array Format: Color CSS Inheritance: yes
Colors for rows in an alternating pattern. Value can be an Array of two of more colors. For the AdvancedDataGrid controls, all items in a row have the same background color, and each row's background color is determined from the Array of colors. Used only if the backgroundColor property is not specified. The default value is undefined.
"aruvasavi" <firstname.lastname@example.org> wrote in message
> Can anyone tell me how to set different colors for the rows of data grid?
> Thanks in advance