0 Replies Latest reply on Apr 20, 2009 10:16 AM by Cr99

    Checkbox in dataGrid header to selectAll on comboxes

    Cr99 Level 1

      I am using a DataGrid with a column of comboxes.  The comboboxes represent the plot type (line, area, column, etc) for a graph.  To get the comboxes to display in the column, I use a custom item renderer:



                       <mx:DataGridColumn dataField="plotType" headerText="Type" width="170" headerStyleName="centered" id="plotColumn"
                           rendererIsEditor="true"  editorDataField="result" itemRenderer="renderer.TypeBoxRenderer"/>



      But now, I'd like to put a checkbox in the header to constrain all the lines to the same type.  So that if the box is selected, I can have all the items in the dataGrid constrained to the same type.  How would I go about doing this?