You'll have to override the data setter.
override public function set data(value:Object):void
{
}
The value object contains the data for an entire row in the DataGrid.
If you can then calculate the selectedIndex based on the data in the
row, you are set to go.
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Gustafson
Sent: Friday, March 02, 2007 8:36 AM
To: [email protected]
Subject: Re: [flexcomponents] Struggling with itemRenderer in DataGrid
That is exactly the solution I hit upon this morning.
Now I am trying to work through how to have a different selectedIndex in
the ItemRenderer for each row in the datagrid.
Any thoughts?
Thanks,
Steve
On 3/2/07, jwopitz <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:
I would try this.
var cf:ClassFactory = new ClassFactory(yourItemRenderer);
cf.properties = {dataProvider:myCBData};
col3.itemRenderer = cf.