Use the 'template' option to customize the checkbox in the row header content.
The CSS handling used in this example works only in modern browsers.
In order to support IE8 or later, applying a background image on the customized checkbox.