Reset Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ReportViewer.Reset Method 

Resets the control to its default values.

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

public void Reset ()
public void Reset ()
public function Reset ()

Calling the Reset method cancels any current rendering and resets the ReportViewer control to its default state. The existing LocalReport object is replaced with a new instance.


Because the LocalReport object is replaced with a new instance when Reset is called, any reference to the SubreportProcessing event handler is removed. You must reinstate the SubReportProcessing event handler after calling Reset to handle sub-report processing events.

private void button1_Click(object sender, EventArgs e)
© 2015 Microsoft