spark DataGrid - how to dynamically change itemRenderer colors in code
I need to dynamically change some attributes of my spark DataGrid at runtime, such as header colors, column colors and whether or not to show the grids row/col lines. I've seen hundreds of examples of doing this, but they are all hard-coded. For instance; by creating a custom "BlueGridHeaderRenderer" and the color is hard coded to Blue.
What I need to do is to be able to change the color at runtime via ActionScript. For instance; by creating a MyHeaderRenderer and being able to set the color dynamically in code through either a function or property.
Seems like a pretty simple request...but I've been banging my head against the wall on this one. Is this even possible?? If so, can someone share some sample code, or at least point me in a direction?
Thanks!
