Export (0) Print
Expand All

ReportViewer.SubmittingParameterValues Event

Visual Studio 2010

Occurs when parameter values are submitted to the report server.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

public event ReportParametersEventHandler SubmittingParameterValues
/** @event */
public void add_SubmittingParameterValues (ReportParametersEventHandler value)

/** @event */
public void remove_SubmittingParameterValues (ReportParametersEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

This event occurs when the user clicks the View Report button, when the user navigates back to a parent report that contains report parameters from a drillthrough report, or when report parameters are automatically submitted due to dependencies between them. Information about this event is passed in a ReportParametersEventArgs object to the ReportParametersEventHandler delegate, which handles the event. This event only applies to remote processing mode.

Handle this event to read or modify the report parameters before they are submitted to the report server.

For more information about handling events, see Consuming Events.

If you want to prevent parameters from being automatically submitted, subscribe to this event and use the following code:

void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
{
    if (e.AutoSubmit)
        e.Cancel = true;
}
Show:
© 2014 Microsoft