Mimer SQL Data Provider help
MimerRowUpdatedEventHandler Delegate
ExampleExample 




Mimer.Data.Client Namespace : MimerRowUpdatedEventHandler Delegate
The source of the event.
A MimerInfoMessageEventArgs instance that contains the event data.
The method that will handle the RowUpdated event of a MimerDataAdapter.
Syntax
'Declaration
 
Public Delegate Sub MimerRowUpdatedEventHandler( _
   ByVal sender As Object, _
   ByVal e As MimerRowUpdatedEventArgs _
) 
public delegate void MimerRowUpdatedEventHandler( 
   object sender,
   MimerRowUpdatedEventArgs e
)
public delegate MimerRowUpdatedEventHandler( 
    sender: TObject;
    e: MimerRowUpdatedEventArgs
);
public delegate MimerRowUpdatedEventHandler( 
   sender : Object,
   e : MimerRowUpdatedEventArgs
)
public: __gc __delegate void MimerRowUpdatedEventHandler( 
   Object* sender,
   MimerRowUpdatedEventArgs* 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 RowUpdated 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.

...
    MimerRowUpdatedCommandHandler rowUpdatedHandler = new MimerRowUpdatedEventHandler(dataAdapter_RowUpdated);
    MimerDataAdapter dataAdapter = new MimerDataAdapter();
    //
    //  Add event handler
    //
    dataAdapter.RowUpdated += rowUpdatedHandler;
    try {
        ...
        //
        //  Event handler is called as part of Update
        //
        dataAdapter.Update();
        ...
    } finally {
        //
        //  Remove event handler
        //
        dataAdapter.RowUpdated -= rowUpdatedHandler;
    }
}
private void dataAdapter_RowUpdated(object sender, MimerRowUpdatedEventArgs e) {
    //
    //  Event handling logic
    //
    ...
}
Requirements

.NET Framework
Version 2.0 or later

See Also

Reference

MimerRowUpdatedEventHandler Members
Mimer.Data.Client Namespace