Fires when the user completes an item edit but before the changes are applied.

Parameters

ParameterDescription
ItemsThe item being edited
NewTextThe item's new text once the changes are applied
CurrentTextThe item's current text

Remarks

The BeforeUpdate event fires when the user has pressed Enter during an edit to apply his or her changes but before the changes are actually applied. This gives you the opportunity to perform validation on the changes. If you decide the changes should not be applied, then set the Cancel property to 1 or 2 to prevent the update and keep the user in edit mode. It's very important that you qualify this event as synchronous. Otherwise, it's impossible to cancel the edit.

See Also

AfterUpdate, Cancel, OnEditAbort

  • No labels