Thanks Alex for the rescue.
----- Original Message ---- From: Alex Harui <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, March 27, 2008 10:04:01 PM Subject: RE: [flexcoders] flex 2 editable datagridcolumn messingup with labelfunction Columns with labelFunction normally need to have itemEditEnd handlers that figure out how to write the data back to the dataprovider. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of gur_sukh Sent: Thursday, March 27, 2008 9:19 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] flex 2 editable datagridcolumn messingup with labelfunction 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:DataGridColu mn):String { return priceFormatter. format(IAttribut e(item).amount) ; } __________________________________________________________________ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

