In this work we introduce event-driven grammars, a kind of graph grammars that are especially suited for visual modelling environments generated by meta-modelling. Rules in these grammars may be triggered by user actions (such as creating, editing or connecting elements) and in its turn may trigger other user-interface events. Its combination with (non-monotonic) triple graph allows constructing and checking the consistency of the abstract syntax graph while the user is building the concrete syntax model. As an example of these concepts, we show the definition of a modelling environment for UML sequence diagrams, together with event-driven grammars for the construction of ract syntax representation and consistency checking.