7 Replies Latest reply on Aug 26, 2007 11:50 PM by maaz_sun_james

    datagrid labelFunction

    Level 7
      Hi All,
      In one of my columns in my datagrid I have a labelFunction:

      <mx:DataGridColumn headerText="Total" dataField="total"
      labelFunction="renderPrice" editable="false"/>

      private function renderPrice(item:Object, column:DataGridColumn):String{
      var temp:Number = 0;
      temp = Number(item["qty"]) * Number(item["per1000"]/1000);
      //myArray.refresh();
      return (temp.toString());
      }

      In my datagrid shows the total fine but in my dataProvider doesn't show the
      value.
      My dataProvider is an ArrayCollection. I try to refresh the arrayCollection
      before the return but doesn't work.
      Any ideas?
      Tks

      JFB