Using this even, I can populate the subsequent Detail Report's datasource and Fill with the proper records. This can cascade down as many times as I need, as I have Master-Detail-Detail-Detail-Detail reports to work on.
Using this way, I simply use my BusinessBindingSources to populate from and I don't require any typed DataSets.
Thanks again all.
Robin Giltner
Thanks.
I've been trying XtraReports, and this is how I accomplished a Master-Detail report:
loYourParentTable.FillDataTable(
loYourChildTable.FillDataTable(
ds.Tables.Add(loYourParentTable.CurrentDataTable)
ds.Tables.Add(loYourChildTable.CurrentDataTable)
ds.Relations.Add(
DataSource = ds.Tables(0)
DataMember =
DetailReport.DataSource = ds.Tables(0)
DetailReport.DataMember =
Just a sample, of course.
Hope it helps.
Ctype(DexExReport.DataSource, DexExDataSet).Tables(0) = My.BusinessObject.CurrentView.toTable
But these data tables are read only. So I try to reference the tables by
Dim loDT1 as DataTable = Ctype(DevExReport.DataSource, DevExDataSet).Tables(0)
loDT1 = My.BusinessObject.CurrentView.totable.Copy
And this gets data into the DataTable on the Report, but it still goes out and get data from SQL Server. If I remove its Select Statement from the TableAdapter in the DataSet, it bombs out completely.
I also tried removing the DataTables, relations first, then adding my BO Tables to it, and the relation back in, but I think I was way over my head and that point and when it didn't work, I gave up.
Thanks,
You could also use the BusinessObject.CurrentView.ToTable() method get DataTable references that you can add to a DataSet and then use that DS as your DataSource for the report; this way, you could use the data that's already in your business object.
I tried things like accessing the Report's DataSource's DataTables, and copying data into them, but the Data source always just goes and grabs its own data from the SqlServer.
Has anyone, or is anyone using XtraReports for Master/Detail reporting and managed to use the Strataframe Business Object's DataTables to populate their report from?