title: Change the text color of a datagrid row on particular condition in AIR application in flex 4
body: <p>I want to change the text color of the datagrid row on particular condition ie.
  i am checking on a condition.If that satisfies then I have to change the text color of each
  cell ie the whole row.</p>
  
  <p>Here is the code,</p>
  
  <pre><code>private function resultHandlerGrid(event:ResultEvent):void{     
  
      arrc1 = ArrayCollection(event.result);
  
      adg1.addEventListener(  ListEvent.ITEM_CLICK,getValue);
  
      }
  private function getValue(e:ListEvent):void{
  
  
  
  if(e.itemRenderer.data.priority == "High")
  {           
  
   e.itemRenderer.data.client_name.setStyle('color',0xFF0000);
  
   }
  }
  </code></pre>
  
  <p>This line is throwing error: setStyle is not a function</p>
  
  <pre><code>e.itemRenderer.data.client_name.setStyle('color',0xFF0000);
  </code></pre>