Hi,

I have a simple datagrid column which is editable and has a label
function. When users enters a value first time it works okay. But if
user comes to that cell and moves out of it the value is set to 0.
Does anyone have any idea what i am doing wrong?

Thanks in advance.


<mx:DataGridColumn 
                        editable="true" 
                        dataField="amount"  
                        headerText="Value" 
                        width="100" 
                        labelFunction="{formatAmount}" />



private function formatAmount(item:Object, column:DataGridColumn):String
{       
return priceFormatter.format(IAttribute(item).amount);
}


Reply via email to