views:

316

answers:

1

I need to set the subreport name through code. How do i do this ? i dont want to change through Format Editor. Is there any way to set the Sub report name in C# ?

For Ex:

int number ="10"; I need this number to be shown as subreport name.and when clicked on that number,subreport details will be shown.

Name        Address   Number
Mercury     London   **10**

Here number 10 is on demand-subreport.

How to set subreport name in C# code ?

A: 

Use the ReportDocument.Subreports().Name property.

Craig