hey guys,
i've a little problem here, i created a method in a report (report x), takes 1 parameter to fill the dataset query with this parameter. this report x is used as subreport in another report (report y).... so i call that method from report y in the textbox bound event with the value of the text box as the parameter like that:
and this is the code of my method (fill_DataSet) in report x:
i've breakbpoint all these and the value is passing correctly from the textbox bound event to the other report but the problem in the first time the subreport rendered where it show no data (as if the value didn't pass) , then this value(first textbox) that supposed to be for the subreport (first subreport) is taken instead by the second subreport rendered.
so my output is a subreports with incorrect data, and a missing first subreprot rendering.
hope someone get it and could help me with that.
P.S i can't use need datasource event as the report has its own dataset and i don't want to use parameters.
i've a little problem here, i created a method in a report (report x), takes 1 parameter to fill the dataset query with this parameter. this report x is used as subreport in another report (report y).... so i call that method from report y in the textbox bound event with the value of the text box as the parameter like that:
Telerik.Reporting.Processing.TextBox textbox = sender as Telerik.Reporting.Processing.TextBox; |
string myParameter = textbox.Text; |
mysecondReport mysecondReport1 = new mysecondReport(); |
subReport1.ReportSource = mysecondReport1; |
((mysecondReport)subReport1.ReportSource).fill_DataSet(myParameter); // where fill_DataSet is my method |
and this is the code of my method (fill_DataSet) in report x:
public void fill_DataSet(string myParam) |
{ |
mysecondReportTableAdapter adapter = new mysecondReportTableAdapter(); |
myDataSet.mysecondReportDataTable table = adapter.GetDataBymyParameter(myParam); |
this.DataSource = table; |
i've breakbpoint all these and the value is passing correctly from the textbox bound event to the other report but the problem in the first time the subreport rendered where it show no data (as if the value didn't pass) , then this value(first textbox) that supposed to be for the subreport (first subreport) is taken instead by the second subreport rendered.
so my output is a subreports with incorrect data, and a missing first subreprot rendering.
hope someone get it and could help me with that.
P.S i can't use need datasource event as the report has its own dataset and i don't want to use parameters.