How to format a currency datafield in Flex

apache-flexcurrencydatagridformatter

I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number).
Can anyone tell me how I take that datafield and format it – add a currency symbol, put in thousand separators etc.
Thanks.
S.

Best Solution

Thanks alot for your answers...they helped a great deal.

In the end I went for a solution that involved the following three elements:

<mx:DataGridColumn headerText="Price" textAlign="right"  labelFunction="formatCcy" width="60"/>

public function formatCcy(item:Object, column:DataGridColumn):String
        {
         return euroPrice.format(item.price);
        }

<mx:CurrencyFormatter id="euroPrice" precision="0" 
    rounding="none"
    decimalSeparatorTo="."
    thousandsSeparatorTo=","
    useThousandsSeparator="true"
    useNegativeSign="true"
    currencySymbol="€"
    alignSymbol="left"/>

I dont know whether this is the correct solution, but it seems to work (at the moment), Thanks again, S...