Here is the JavaScript Code to which enables us to Check all CheckBoxes from GridView Header CheckBox. The TreeView doesn't have a Header. In the header there is a "check all" checkbox.