control grid events