Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V21.2
  • SnapControl.SnapMailMergeActiveRecordChanging Event

    Occurs before traversing to the next data record in a mail merge data source.

    Namespace: DevExpress.Snap

    Assembly: DevExpress.Snap.v21.2.dll

    NuGet Package: DevExpress.Win.Snap

    Declaration

    public event EventHandler SnapMailMergeActiveRecordChanging

    Event Data

    The SnapMailMergeActiveRecordChanging event's data class is EventArgs.

    Remarks

    When a mail merge is performed in the user interface, the SnapMailMergeActiveRecordChanging event can be raised asynchronously, requiring use of the SnapControl‘s InvokeRequired property in the event handler to determine if it is necessary to call the SnapControl.Invoke method to execute a delegate in a thread that owns the control.

    void snapControl1_SnapMailMergeActiveRecordChanging(object sender, EventArgs e)
    {
        Action d = delegate {
            // Add a method to handle the event.
        };
        if (this.snapControl1.InvokeRequired)
            this.snapControl1.Invoke(d);
        else
            d();
    }
    
    See Also