SqlConnection connSomsys = new SqlConnection(@"Server=cmdivst004\Jason08;Integrated Security=false;Database=QuoteDB; Persist Security Info=True;User ID=cmdiapp;Password=adiadmin"); |
Telerik.Reporting.Processing.SubReport report3 = (Telerik.Reporting.Processing.SubReport)sender; |
SqlCommand selectCommand; |
selectCommand = new SqlCommand("sprocgetYears", connSomsys); |
selectCommand.CommandType = CommandType.StoredProcedure; |
selectCommand.Parameters.AddWithValue("@ousername_vc", this.ReportParameters["ousername_vc"].Value); |
SqlDataAdapter adapter = new SqlDataAdapter(selectCommand); |
DataSet dataSet3 = new DataSet(); |
adapter.Fill(dataSet3); |
//Now I would like to do something like the following but cannot, need help with this part... |
report3.Table1.DataSource = dataSet3; |
Jason