or
| Telerik.Reporting.Processing.TextBox textbox = sender as Telerik.Reporting.Processing.TextBox; |
| string myParameter = textbox.Text; |
| mysecondReport mysecondReport1 = new mysecondReport(); |
| subReport1.ReportSource = mysecondReport1; |
| ((mysecondReport)subReport1.ReportSource).fill_DataSet(myParameter); // where fill_DataSet is my method |
| public void fill_DataSet(string myParam) |
| { |
| mysecondReportTableAdapter adapter = new mysecondReportTableAdapter(); |
| myDataSet.mysecondReportDataTable table = adapter.GetDataBymyParameter(myParam); |
| this.DataSource = table; |
rpt.DataSource = datatable;
ReportViewer1.Report = rpt;
On actual report. I just have a table control and FirstName and LastName in 2 separate columns.
ReportViewer1.DataBind()