Groups | Blog | Home
all groups > flash (macromedia) > november 2003 >

flash (macromedia) : Can't get DataGrid alternatingRowColors to work


slieb
11/25/2003 10:38:39 PM
The doc for DataGrid points to "Customizing the List component" for certain styles, and for alternatingRowColors, it simply has the following:

Specifies colors for rows in an alternating pattern. The value can be an array of two or more colors, for example, 0xFF00FF, 0xCC6699, and 0x996699.

Does anyone have any actionscript for a DataGrid that enables this to work? I've tried a few different ways of doing this with no luck. Thanks.


smi295 NO[at]SPAM hotmail.com
12/3/2003 2:52:03 AM
try this:

J_a_m
12/10/2003 9:53:52 AM
Hi, you should provide an array of colors that you want appear alternating in your grid. For example, let name your datagrid "myGrid", and you want alternating colors, do the following:

myGrid.alternatingRowColors = ["0x666666","0x999999", "0xFF0000"];
//you can specify more than 2 colors


AddThis Social Bookmark Button