Is there any way I can access the "dataField" field from within a
custom item renderer?

<mx:DataGridColumn itemRenderer="MyCustomComponent"
dataField="startDate"/>
<mx:DataGridColumn itemRenderer="MyCustomComponent" dataField="endDate"/>

In this case the component MyCustomComponent would know to look at the
data.startDate field when displaying the first column and the
data.endDate field when displaying the second column.  I would imagine
the component to look something like:

<mx:Label text="{formatter.format(data[dataField])}"/>

Reply via email to