Hi All,

I create mycustom user control with ReportViewer in it. When I use the control on my page, I dynamically initialize dataset:

protected void Page_Init(object sender, EventArgs e)

{

ReportDefinition def = ReportAdapter.GetReportEntry();

_filter = (BaseFilter)LoadControl(def.FilterName);

Viewer.Drillthrough += new DrillthroughEventHandler(Viewer_Drillthrough);

}

This handler fills subreport.

void Viewer_Drillthrough(object sender, DrillthroughEventArgs e)

{

LocalReport drillthroughReport = (LocalReport)e.Report;

setSubReport(drillthroughReport);

}

Couldanybody please explain me why I never get into Viewer_Drillthrough?

Thanks for any advices...

--

Igor