Hi ,
Check this
private void Form1_Load(object sender, EventArgs e)
{
this.usp_ReportPersonByIDTableAdapter.Fill(this.HeaderPerson.usp_ReportPersonByID,1);
this.reportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SubreportProcessingEventHandler);
this.reportViewer1.RefreshReport();
}
void SubreportProcessingEventHandler(object sender, SubreportProcessingEventArgs e)
{
int Per_ID = Convert.ToInt32(e.Parameters["Per_ID"].Values[0].ToString());
this.usp_GetPZonesTableAdapter.Fill(DetailPerson.usp_GetPZones, Per_ID);
e.DataSources.Add(new ReportDataSource("DetailPerson", (DataTable)this.DetailPerson.usp_GetPZones));
}
And Check this link also
http://support.microsoft.com/kb/919157[
^]
Best Regards
M.Mitwalli