views:

519

answers:

3

I have datagrid in my page and I want to change particular cell background color. I don't want to use itemrenderer. Is there any alternate ?

A: 

Here is an example of changing the selection color: Flex Examples

If you want to do more than that, I'm afraid you will have to use an itemRenderer.

CookieOfFortune
A: 

You could subclass DataGrid and override the protected drawRowBackground() method or possibly drawColumnBackground(). These are intended to draw the background for an entire row or column but you may be able to get it to draw a special color only for the cell(s) you want.

cliff.meyers
A: 

If you are using the advancedDatagrid, you could use the styleFuction.

Flexicoius