2 Replies Latest reply on Mar 21, 2008 11:44 AM by Frank_Phillips

    labelFunction, generic for DataGrid

    Frank_Phillips Level 1
      All,

      I have a labelFunction as follows:

      private function myNF(item:Object,column:DataGridColumn):String
      {
      return NF.format(item.fni);
      }

      "fni" is a dataField from an XMLList and NF is a mx:NumberFormatter. I would like to use this function for all my numeric data columns in my DataGrid. Any ideas on how to replace the "fni" with some code that will detect the column from the function call? Thanks