Mimer SQL Data Provider help
MimerRowUpdatingEventHandler Delegate
ExampleExample 




Mimer.Data.Client Namespace : MimerRowUpdatingEventHandler Delegate
The source of the event.
A MimerInfoMessageEventArgs instance that contains the event data.
The method that will handle the RowUpdating event of a MimerDataAdapter.
Syntax
'Declaration
 
Public Delegate Sub MimerRowUpdatingEventHandler( _
   ByVal sender As Object, _
   ByVal e As MimerRowUpdatingEventArgs _
) 
public delegate void MimerRowUpdatingEventHandler( 
   object sender,
   MimerRowUpdatingEventArgs e
)
public delegate MimerRowUpdatingEventHandler( 
    sender: TObject;
    e: MimerRowUpdatingEventArgs
);
public delegate MimerRowUpdatingEventHandler( 
   sender : Object,
   e : MimerRowUpdatingEventArgs
)
public: __gc __delegate void MimerRowUpdatingEventHandler( 
   Object* sender,
   MimerRowUpdatingEventArgs* e
)

Parameters

sender
The source of the event.
e
A MimerInfoMessageEventArgs instance that contains the event data.
Remarks
This event handler is called before the row is actually changed.

Any exceptions generated by the event routine are ignored.

Example
The following example shows the general logic for adding and removing a RowUpdating event handler.

No example is available for C++, JScript or Visual Basic. To view a C# example, click the Language Filter button in the upper-left corner of the page.

...
    MimerRowUpdatingCommandHandler rowUpdatingHandler = new MimerRowUpdatingEventHandler(dataAdapter_RowUpdating);
    MimerDataAdapter dataAdapter = new MimerDataAdapter();
    //
    //  Add event handler
    //
    dataAdapter.RowUpdating += rowUpdatingHandler;
    try {
        ...
        //
        //  Event handler is called as part of Update
        //
        dataAdapter.Update();
        ...
    } finally {
        //
        //  Remove event handler
        //
        dataAdapter.RowUpdating -= rowUpdatingHandler;
    }
}
private void dataAdapter_RowUpdating(object sender, MimerRowUpdatingEventArgs e) {
    //
    //  Event handling logic
    //
    ...
}
Requirements

.NET Framework
Version 2.0 or later

See Also

Reference

MimerRowUpdatingEventHandler Members
Mimer.Data.Client Namespace