1 Reply Latest reply on Mar 19, 2007 9:16 AM by joan_lafferty

    datagrid font colors

      Hello - i have a webservice returning true/false into a datagrid. I am wondering if and how i can create an IF statement that will change the individual record (row and column) font color to RED if the value for that field is FALSE?
      All i am able to do currnently is change the entire column font color, not an individual cell.
      is this possible?
        • 1. Re: datagrid font colors
          joan_lafferty Adobe Employee
          You will need to use a custom itemRenderer and override the set data function. Something like this should work:

          override public function set data(value:Object):void
          if(value != null)
          super.data = value;
          if(value.someValue) {
          setStyle('color', 0x000000);
          else {
          setStyle('color', 0xFF0000);