private void ClearView() { if (reportViewer != null) { reportViewer.Destroy(); } reportViewer = new ReportViewer(); foreach (Widget w in hboxViewer.AllChildren) { hboxViewer.Remove(w); } hboxViewer.Add(reportViewer); ShowAll(); entryRouteListNumber.Text = ""; }