This is a migrated thread and some comments may be shown as answers.

2010 Q1 processing sub report

2 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Naphtali
Top achievements
Rank 1
Naphtali asked on 15 Mar 2010, 11:00 AM
I have a report with a sub report on it. In order to set the data source of the sub report I use the SubReport_ItemDataBinding event as shown below.

 

private void SummarySubReport_ItemDataBinding(object sender, EventArgs e)

 

{

 

DataView dv = new DataView(m_data, "LetterBatchId = 491",

 

 

null, DataViewRowState.CurrentRows);

 

Telerik.Reporting.Processing.

SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;

 

subReport.InnerReport.DataSource = dv;

}

After updating to 2010 Q1 the innerReport of the subReport is null.
Why has this changed and how can I get this working again?

2 Answers, 1 is accepted

Sort by
0
Naphtali
Top achievements
Rank 1
answered on 18 Mar 2010, 09:22 AM
Has anyone got a solution for my problem with the inner report being null.
0
Steve
Telerik team
answered on 18 Mar 2010, 09:40 AM
Hi naphtali,

If you perform a search in the forums you would notice that we have never given an example of binding a subreport in ItemDataBinding event. The proper event you should use that has always been meant for this purpose is NeedDataSource.

All the best,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Naphtali
Top achievements
Rank 1
Answers by
Naphtali
Top achievements
Rank 1
Steve
Telerik team
Share this question
or