It seems like there are various hacks out there to change the background colour of the row of a datagrid but all of them seem to happen at render time.
See: Setting background color for datagrid row in Adobe Flex
I have a datagrid where I need to change row colours to red then back to normal frequently based on changes to the bound ArrayCollection. So I'm looking for a way to change the row colours dynamically.
Can anyone help? Obviously as the changes are happening frequently it would be nice if changing the background colour of the row wasn't an expensive process, but beggar's can't be choosers.
You'll have to write a custom component, I'll include sanitized code from our project. Somewhere in your ActionScript, you'll need to write this for each column:
Here's the custom class: