Accessing an ItemRenderer in a DataGrid
- by mmattax
I have a data grid that has a checkbox item renderer in a cloumn to allow row selections:
Main application:
<mx:DataGrid id="dg"
<mx:columns
<mx:DataGridColumn id="ir" itemRenderer="renderers.RowCheckbox" /
<mx:DataGridColumn dataField="Name" headerText="Name" /
</mx:columns
</mx:DataGrid
Item renderer:
<-- RowCheckbox --
<?xml version="1.0" encoding="utf-8"?
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center"
<mx:CheckBox id="chk"/
</mx:HBox
How can I get a handle to the item renderer / checkbox so that I may determine which rows are checked?