Make a Checkbox in header select all / deselect all

Hi,

We are currently evaluating the dhtmlxGrid software and so far think its fantastic, however we have hit a small snag.



I want to make the checkbox in our header select / deselect all checkboxes in one column



our header column is





<![CDATA[]]>





This displays the checkbox, but I have no clue on how to make it interact with the checkboxes in its corresponding column



Can you help?



Thanks

Joe

To deselect all checkboxes in some column next code can be used

    grid.forEachRow(function(id){
       grid.cells(id,INDEX).setValue(0);
    });


where INDEX - index of necessary column