private void Loaddata() { ReportViewer1.Visible = true; //ReportParameter p1 = new ReportParameter("salid"); //ReportParameter p2 = new ReportParameter("brid"); //ReportParameter p3 = new ReportParameter("FromDate"); //ReportParameter p4 = new ReportParameter("ToDate"); //this.ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { p1, p2, p3, p4 }); ReportViewer1.DocumentMapCollapsed = true; Central xsdDataSet = new Central(); xsdDataSet.EnforceConstraints = false; xsdDataSet.BeginInit(); ReportDataSource rptdataSource1 = new ReportDataSource(); ReportViewer1.LocalReport.DataSources.Add(rptdataSource1); rptdataSource1.Name = "DataSet1"; rptdataSource1.Value = xsdDataSet.CentralByRetun; xsdDataSet.EndInit(); CentralTableAdapters.CentralByRetunTableAdapter storeAdp = new CentralTableAdapters.CentralByRetunTableAdapter(); // xsd.BranchSalesDetails.Clear(); storeAdp.FillCentralByRetun(xsdDataSet.CentralByRetun); storeAdp.ClearBeforeFill = true; this.ReportViewer1.LocalReport.Refresh(); }