By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,397 Members | 2,515 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,397 IT Pros & Developers. It's quick & easy.

How to display a report that contains a subreport by using the ReportViewer control in Visual Studio

P: n/a

Hi Guys,

I am sure all of you in this thread have found a solution for this
problem.

I have tried the following:
in the button click as I have a parameter to select the Main report
data.

Buttonclick event :
--------------------
{
Code here....

RvMemberInfo.LocalReport.DataSources.Add(new
ReportDataSource("MembersInformationDataSet_GetMem berByID",
this.ShowMemberDetails.ID));
RvMemberInfo.LocalReport.SubreportProcessing += new
SubreportProcessingEventHandler(SetSubDataSource);
RvMemberInfo.LocalReport.Refresh();
}

public void SetSubDataSource(Object sender ,
SubreportProcessingEventArgs e )
{
e.DataSources.Add(new
ReportDataSource("MemberInformationDataSet_GetMemb erActivitiesByMemberID
",
this.ShowMemberActivities.ID));
}

Any help or suggestions will be really helpful.

Sheena
*** Sent via Developersdex http://www.developersdex.com ***
Nov 29 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.