or
| public partial class Report1 : Report |
| { |
| SqlCommand sqlSelectCommand1 = new SqlCommand(); |
| SqlConnection sqlConnection1 = new SqlConnection(); |
| SqlDataAdapter sqlDataAdapter1 = new SqlDataAdapter(); |
| public Report1() |
| { |
| /// <summary> |
| /// Required for telerik Reporting designer support |
| /// </summary> |
| InitializeComponent(); |
| sqlConnection1.ConnectionString = "server=(local);database=TroubleTicket;Trusted_Connection=true"; |
| sqlSelectCommand1.CommandText = "SELECT * FROM app_projects"; |
| sqlSelectCommand1.Connection = sqlConnection1; |
| sqlDataAdapter1.SelectCommand = sqlSelectCommand1; |
| this.DataSource = sqlDataAdapter1; |
| } |
| } |