Originally posted by: ljonny18
I am using a grid within a component in my Flex application.
I have an XML dataProvider, and I want to change the row colour of my Grid depending on a value coming form my dataProvider – but I cant seem to get this to work :(
can anyone help / advise me on how I can dynamically change the colour of my grid row depending on a value coming from my XML DataProvider????
Changing the background color of a DataGrid cell is not as simple as changing some style because the default renderer for a DataGrid cell does not have a backgroundColor. Therefore, to do this simple task, you have to create a custom itemRenderer where you draw your own background in the updateDisplayList function.