Subclass the DG and access listItems array to get to the other cells.

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eduardo Dias
Sent: Tuesday, April 03, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid - Disable row



Hi,

I have a datagrid with three columns.  In my first column I have a
itemrenderer with checkbox and in the other two columns 
I have two labels. I'm trying to disable a row of the datagrid when the
user pick a checkbox in the first column. 
I used selectedItem to get a row and itemToItemRenderer to get the
reference of the row, but just the first column of the 
datagrid is disabled.


var someItemReference:Object = my_datagrid.selectedItem;
var itemRenderer:IListItemRenderer = 
my_datagrid.itemToItemRenderer(someItemReference);
itemRenderer.enabled = false;


Any suggestions?
Cheers! 

 

Reply via email to