views:

165

answers:

1

This is similar to this question I asked last week.

My dataGrid is populated with three phone numbers per row. Each phone number is pulled from an array and displayed using a labelFunction, while the name and description come from the dataProvider. I used the really helpful solution to my last question with some success, but can't grab the actual data.

Maybe I've spent too much time on it but I'm stumped and stuck.

A: 

I was able to get the specific data using the code below, thanks to help from a collegue:

var x:DataGridItemRenderer = event.itemRenderer as DataGridItemRenderer;
var y:DataGridListData = x.listData as DataGridListData;
var z:String = y.label;

I hope this helps someone.

Captain Phoenix