insert subreport in to crystalreport
CrystalReportSource1.ReportDocument.Subreports["INV002.rpt"].SetDataSource(ds.Tables["dt21"]);
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables["dt2"]);
CrystalReportViewer1.ReportSource = CrystalReportSource1;
CrystalReportSource1.DataBind();
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables["dt2"]);
CrystalReportViewer1.ReportSource = CrystalReportSource1;
CrystalReportSource1.DataBind();