Disabling grid dialog