Last post Dec 20, 2010 05:10 AM by You-Hu Fu
Dec 16, 2010 01:27 AM|hkbeer|LINK
I have a Reportviewer with Objectdatasource as default datasource.
However I want the report to have a datasource with parameter depending on the label.text value so sqldatasource is ideal for this. However I dunno how to set the reportviewer datasource as sqldatasource control. Can someone help ?
Dec 16, 2010 04:15 AM|abrly|LINK
if you are setting an objectdatasource as default datasource.. that mean your report will get the data thru " select method of your object data source", so if your method accept any parameter to return some result, your object data source will ask you to
select the "parameter" either from query string or from anyother control.
Dec 20, 2010 05:10 AM|You-Hu Fu|LINK
Do you mean to set a dynamical different type datasource for the reportviewer control ? Actually, you could utilize two reportviewer controls, you could hide one of them based on the label's text.