Hello
I am experimenting with different databinding methods and wanted to get something confirmed...
This technique...
of putting the databinding logic after the call to "InitializeComponent", works during report development but does NOT allow for drag and drop from the data explorer, correct?
Then the technique of setting the datasource of the report by setting the report properties at runtime, does not allow for the previewing of data during report development. Correct?
Pros and cons of each?
Thanks for your help!
Harold Chattaway
I am experimenting with different databinding methods and wanted to get something confirmed...
This technique...
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; |
} |
} |
of putting the databinding logic after the call to "InitializeComponent", works during report development but does NOT allow for drag and drop from the data explorer, correct?
Then the technique of setting the datasource of the report by setting the report properties at runtime, does not allow for the previewing of data during report development. Correct?
Pros and cons of each?
Thanks for your help!
Harold Chattaway