title: Flex itemRenderer to bold dynamically based on the cell contents
body: <p>Flex 4 Help I need an  itemRenderer to setStyle of the fontWeight of an entire row of a datagrid to bold dynamically based on the cell content of any cell in that row. So for example if the cell content  in my entire datagrid equals the string  ”ALL” I want that entire row that has that cell in the datagrid to be “bold”.  Note: this is not XML data.</p>
  
  <pre><code>Render
  
  protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
              super.updateDisplayList(unscaledWidth,unscaledHeight);
              if (data.toString() == "ALL"){
                  setStyle("fontWeight","bold");
              }else{
                  setStyle("fontWeight","normal");
              }
  
          }
  
  MXML Code
  &lt;mx:VBox width="100%" id="statsGridBox"   height="40%" &gt;
  &lt;mx:DataGrid id="statsGrid" width="100%" height="100%" itemRenderer="com.jpmc.ctrbs.dashboard.alarms.renderers.FontWeightRowRender"/&gt;
  &lt;/mx:VBox&gt;
  </code></pre>