That's not much to go on. The problem could be A) your event is not executing properly for some reason, B) event runs but due to incorrectly written code (ie conditionals) the event is not setting the grid, C) event code works but your test is written wrong, D) test works but is looking at wrong target, E) other code is interfering and setting the value back to zero before you test it, or F) something else.