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




Reply via email to