private void ShowRep_Click(object sender, EventArgs e)
{
DataTable dt = GetSpRecord(textBox1.Text);
this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;
this. reportViewer1.LocalReport.ReportPath = "Report1.rdlc";
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("TestSalaryDataSet", dt));
this.reportViewer1.LocalReport.Refresh();
}
The above is my code i can see the stored procedure result is showing in datashources at this point reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("TestSalaryDataSet", dt)); but the problem is that my report viewer is not showing the data.