Barbara.
--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> 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: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of nahruka
> Sent: Tuesday, May 16, 2006 8:37 AM
> To: [email protected]
> 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?
>
> ----------------------
> <mx:DataGridColumn headerText="Full name" columnName="fullname"
> 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.

