DataSet1 a = new DataSet1();
DataRow dr = a.TABLE2.NewRow();
dr[0] = 1;
dr[1] = 2;
dr[2] = 3;
a.TABLE2.Rows.Add(dr);
Microsoft.Reporting.WebForms.ReportDataSource bb = new Microsoft.Reporting.WebForms.ReportDataSource("DataSet1_TABLE2", a.TABLE2);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(bb);
dataset1是个xsd文件,因为设计报表 的时候一定要个数据源拖拉方便,就会生成个xsd文件