Hi,

I'm trying to do a simple loop through a datagrid to set a column 
that's using the CheckCellRenderer to be checked or unchecked but 
the following code does not work, well sort of.  What happens is 
that if I "mouseover" each row, viola, the checks in the checkbox 
appear or disappear depending on my choice to select all or not. 
Here is the function I call to set the checkboxes in the grid:

private function selectAll(newState:Boolean):Void
{
        for( var i in dataGrid.dataProvider )
                dataGrid.dataProvider[i].cbSelect = newState;
}

The datagrid column is defined as:
mx:DataGridColumn headerText="" width="40" columnName="cbSelect" 
cellRenderer="CheckCellRenderer" resizable="true"  />

The dataprovider for the grid is an RO...

TIA for any info.
Rob






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to