Thanks for the reply Susan. In my case, I would only want to change the backgroundColor style when 'GA' was in the datagrid's row - not necessarily on alternating rows. Any ideas of the syntax in the setValue function in the CellRenderer API?
Thanks, Mike --- In [email protected], Susan Chang <[EMAIL PROTECTED]> wrote: > Hi! > > Try using alternatingRowColors instead. > > Thanks! > Susan > Flex Team > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 09, 2005 1:32 PM > To: [email protected] > Subject: [flexcoders] Datagrid Rows - backgroundColor style... > > > > I've looked around on the `net' for cellrenderers that change the > backgroundColor for a Flex datagrid's rows without much success. > I was > able to change the text color in my renderer like this: > > Snippet from cellRenderer: > > function setValue(str:String, item:Object, sel:String) : Void { > if (item.c_state=='GA') { > lbl.setStyle("color", 0x006600); > } else { > lbl.setStyle("color", 0x000000); > } > lbl.text = item.c_state; > } > > Has anyone seen or have some example code to change the backgroundColor > instead? Of note, I've tried changing the "color" to "backgroundColor" in > the above code to no avail. > > > > > > > Yahoo! Groups Links

