i am having a usercontrol that loads my rdlc report in c# like this;
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Subject1", typeof(int)));
dt.Columns.Add(new DataColumn("Subject2", typeof(int)));
dt.Columns.Add(new DataColumn("Subject3", typeof(int)));
dt.Columns.Add(new DataColumn("Subject4", typeof(int)));
DataRow dr = dt.NewRow();
dr["Subject1"] = 23;
dr["Subject2"] = 32;
dr["Subject3"] = 33;
dr["Subject4"] = 874;
dt.Rows.Add(dr);
ReportDataSource reportDataSource = new ReportDataSource();
reportDataSource.Name = "DataSet1";
reportDataSource.Value = dt;
reportViewer.LocalReport.ReportPath = "C:\\Users\\hp\\source\\repos\\SMSKICSO\\SMSKICSO\\myReports\\TermlyReport.rdlc";
reportViewer.LocalReport.DataSources.Add(reportDataSource);
reportViewer.RefreshReport();
Problem: can i be able to doe this;
dr["Subject1"] = to a particular column in datagridview in wpf in c#;
such that when ever a particular row is selected that particular column row will be maped to my rdlc dataset1 report;
please can some one help resolve the issue thank you in advance;
Please: the sqlDatabase Data i have is thesame as the DataSet1;