column formatting in flash 8 datagrid
- by eventdave
I have a datagrid in flash 8 that has an array as a data provider.
One of the items in the array is a number, which represents an amount of money. So I iterate through the array and create a new item "amountFormatted" in each line of the array.
For example I have a value of 10 and a formatted value of £10.00 in the array. This formatted value then appears in the datagrid.
This seems a little cumbersome and I wondered if there was a way to set some automatic function so that the column in the datagrid is automatically formatted. a bit like an excel column can have formatting applied to it.
I hope that is clear, thanks for any response.