No, I don't believe that will work.
I would just use the labelFunction to get the string value when I needed
it programmatically:
var sFullName:String = getFullName(myDataGrid.dataProvider.getItemAt(0))
Tracy
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nahruka
Sent: Tuesday, May 16, 2006 8:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5: Using columnName + labelFunction in a
DataGrid
Hi all,
Please, how can I get the data value of a DataGrid cell when the
DataGridColumn uses a labelFunction?
--
labelFunction="getFullName" editable="false" />
--
private function getFullName(item: Object, columnName: String): String {
var str;
item.FULLNAME == undefined?
str=null :
str=item.FULLNAME.FIRST+" "+item.FULLNAME.LAST;
return str;
}
For example, should
myDataGrid.dataProvider.getItemAt(0)["fullname"]
return "John Smith" ?
I always get an undefined value...
Thanks!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.