Added method to generate the check-all checkbox in grids