column formatting in flash 8 datagrid
Posted
by eventdave
on Stack Overflow
See other posts from Stack Overflow
or by eventdave
Published on 2010-04-07T13:41:51Z
Indexed on
2010/04/07
13:43 UTC
Read the original article
Hit count: 210
flash
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.
© Stack Overflow or respective owner