Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Use multiple SqlDataSources on a single report

$
0
0

I'm trying to use two sqlDataSources on a single report.

 So farI have this piece of code where the Datasource is binded to the first sqlDataSource.

 

01.this.sqlDataSource1.ConnectionString = this.SqlConnectionString;
02.this.sqlDataSource1.CommandTimeout = 600;
03.this.sqlDataSource1.Parameters.Clear();
04.this.sqlDataSource1.Parameters.AddRange(newTelerik.Reporting.SqlDataSourceParameter[] {
05.                newTelerik.Reporting.SqlDataSourceParameter(StandardParams.varKey, System.Data.DbType.Int32, _varKey),
06.                newTelerik.Reporting.SqlDataSourceParameter(StandardParams.IncludeZeroBalance, System.Data.DbType.Boolean, false)
07.            });
08.this.sqlDataSource3.ConnectionString = this.SqlConnectionString;
09.this.sqlDataSource3.CommandTimeout = 600;
10.this.sqlDataSource3.Parameters.Clear();
11.this.sqlDataSource3.Parameters.AddRange(newTelerik.Reporting.SqlDataSourceParameter[] {
12.                newTelerik.Reporting.SqlDataSourceParameter(StandardParams.varKey, System.Data.DbType.Int32, _varKey)
13.            });
14.this.DataSource = sqlDataSource1;

 

I want to know if there is a way in order to tell the report that whenever I set the value of an htmlTextBox I can use the sqlDataSource other than the one set on this.DataSource.

 

Thanks.


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>