4 Replies Latest reply on Aug 27, 2009 6:42 PM by Si Phu

    checkbox selection in datagrid.

    karnatis Level 1

      Hi All,


         Defined checkbox in datagrid using this example:




        The code is which is mentioned is working fine but I'm trying to fetch all the selected checkboxes when user selects 'selected items' button.





      <local:CheckBoxDataGrid id="dg" initialize="dg.dataProvider=arr"















      <mx:DataGridColumn dataField="firstName" headerText=" " width="20" sortable="false" itemRenderer="CheckBoxRenderer" >






      <mx:DataGridColumn dataField="firstName" headerText="First Name"




      <mx:DataGridColumn dataField="lastName" headerText="Last Name"











      <mx:Button label="show selected items" click="showSelectedItems()"/>


      Can anyone please let me know, how to iterate CheckBoxDataGrid for finding selected check box elements. Here I'm adding my code for your reference....


      Thanks in advance.