Angela Sampaio (04/30/2008)
I need to use an event "BeforeEdit" but i'm not meeting.
Is there any way to do that?
Thanks. Hi Angela,
I don't see any Before Edit, but you may be able to do something like this:
Private Sub CustomersBO1_EditingStateChanged(ByVal e As MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) Handles CustomersBO1.EditingStateChanged If e.EditingState = MicroFour.StrataFrame.Business.BusinessEditingState.Editing Then '-- Check your conditions here and undo the editing if needed. Me.CustomersBO1.Undo(MicroFour.StrataFrame.Business.BusinessUndoType.CurrentRowOnly) End If
End Sub I am not sure it will work for you, but it may give you an idea.