Added beforeedit event to SwissArmyGrid.