Question : programmatically work with object data source and report viewer

Trying to use object data source control programmatically.  I need to use it with a report viewer control.  Just trying to hardcode some values which seems to work fine. but I don't know how to bind the report

Here is my sample code

        ObjectDataSource os = new ObjectDataSource("TutorManager", "GetList");
        os.DataObjectTypeName = "BizObject.clsTutor";
        genericReportViewer.LocalReport.DataSources.Clear();
        genericReportViewer.LocalReport.ReportPath = Server.MapPath("TutorReport.rdlc");
        genericReportViewer.LocalReport.DataSources.Add(new ReportDataSource(???????

Any pointers?

Answer : programmatically work with object data source and report viewer

I'm sure it is possible.  In one of the links I sent, it says that it is hard, but explains how to do it:

http://aspalliance.com/762_Binding_the_ReportViewer_Control_to_Multiple_Generic_Collections

    -dZ.
Random Solutions  
 
programming4us programming4us