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. 





Reply via email to