labelFunction gets two arguments.  One is a reference to the *entire*
dataProvider item, the other to the dataGridColumn.  Since you have a
reference to the whole item, you can easily build your return string.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sefi Ninio
Sent: Thursday, August 21, 2008 4:15 PM
To: [email protected]
Subject: [flexcoders] DataGridColumn trouble...

 

Hi.

I have a DataGrid, and a few DataGridColumns in it.
One of them has a labelFunction, that should return a value that depends
on the values of two of the other columns.

example:
|  name  |  start  |  end  |  diff  |
|  xxx     |   5     |   7     |   2    |
|   yyy    |   10    |  100  |   90  |

etc...

I can't find a way to get a reference to the DataGrid or the other
DataGridColumns inside it from the labelFunction - using it's
DataGridColumn argument...

Any help would be greatly appreciated..

Sefi

 

Reply via email to