I need to set the color of a cell (not the entire row or column) 
depending on the the data value of the current cell, and the column 
that i'm in.  

so If I have a ADG like this:

...| x | y | z |
---|---|---|---|
abc| 5 | 6 | 7 |
def| 1 | 7 | 8 |

if the column is X, I need to color any cell where the value is less 
than 4
if the column is Y, I need to color any cell where the value is less 
than 7
if the column is Z, I need to color any cell where the value is less 
than 8

I can't hard-code the values, because they will change based on a 
configuration (I essentially have an array that gets populated 
elsewhere that I can reference).

Since my source data is XML, I get the entire XML row when I look at 
the data:Object in my renderer, which does me no good because I can't 
tell which column I'm in to look up a compare value.

If I use a style function in my column, I can't set the background 
color, since by default, the ADG doesn't have a background color.  
Furthermore, I can't get a reference to that cell's renderer, only 
the entire datagrid's or column's renderer.

At this point, I'm just lost.  Any help is greatly appreciated.

Thanks in advance!

Reply via email to