disables grid in print and print preview