﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Master - Detail report using DevExpress</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 06:13:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Master - Detail report using DevExpress</title><link>http://forum.strataframe.net/FindPost22699.aspx</link><description>:crazy:Hi&lt;P&gt;I make a master/detail report using DevExpress report control. Is something basic, like order / orderitems.&lt;/P&gt;&lt;P&gt;In the report code I add this:&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Publicacion_DataSourceRowChanged(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.Object, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; DevExpress.XtraReports.UI.DataSourceRowEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;MyBase&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.DataSourceRowChanged&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- On Each Publicaciones DataSource Row Changed, we need to fill for the PublicacionesProductos&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.PublicacionesProductosBBS1.BusinessObject, PublicacionesProductosBO).FillByParentPrimaryKey(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.PublicacionesBBS1.BusinessObject, PublicacionesBO).IdPublicacion)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;The report works exactly as I need.&lt;/P&gt;&lt;P&gt;But I need this report can be customized by the end users; in other reports I use Scrips, because a custom reports does not have code inside it, this need to be done with scripts.&lt;/P&gt;&lt;P&gt;Adding the script to the reports, has a problem, there is a big error, because the script does not found the "PublicacionesProductosBO", my solution has a a proyect with the reports, forms, resources, business binding sources&amp;nbsp;and another proyect with the BOs.&lt;/P&gt;&lt;P&gt;In other reports that has data of only one BBS there is not problem at all using scripts, but in this it seems that the "child BO" can not be found, I already add the Imports clause but not work.&lt;/P&gt;&lt;P&gt;I have read many post about master/detail reports and can not found anything, most post are relatead to Report SharpShooter. I think than I'm not the only one using xtraReports, maybe someone already has this problemas and can point me in the right direction.&lt;/P&gt;&lt;P&gt;If the only solution is have the BOs and the BBSs, forms, reports and all in the same proyect, Can you tell me how can do this, because at this time I have all in two proyects.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Tue, 14 Apr 2009 11:10:40 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Master - Detail report using DevExpress</title><link>http://forum.strataframe.net/FindPost22713.aspx</link><description>Edhy&lt;/P&gt;&lt;P&gt;Thanks, I will use those for first time.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Tue, 14 Apr 2009 11:10:40 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Master - Detail report using DevExpress</title><link>http://forum.strataframe.net/FindPost22712.aspx</link><description>[quote][b]Juan Carlos Pazos (04/14/2009)[/b][hr]I will take a look to StrataFlix, in past I done that but I could not understand the logic you use...[/quote]&lt;br&gt;
Hi Juan Carlos,&lt;br&gt;
I have been down that route with StrataFlix and one thing that helped was to use the debugger and set some break points to follow the code.</description><pubDate>Tue, 14 Apr 2009 11:07:26 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Master - Detail report using DevExpress</title><link>http://forum.strataframe.net/FindPost22710.aspx</link><description>Thanks Trent&lt;/P&gt;&lt;P&gt;I will take a look to StrataFlix, in past I done that but I could not understand the logic you use, so I will study this time more carefully, trying to understand how you do it and how can I implement in my own application.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Tue, 14 Apr 2009 10:45:34 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Master - Detail report using DevExpress</title><link>http://forum.strataframe.net/FindPost22705.aspx</link><description>You may be going down a road that is more difficult than you need.&amp;nbsp; The very first thing I would suggest is looking at the StrataFlix sample as there is a master/detail sample report in there and it also shows how to setup the BBS and child BBS.&amp;nbsp; Instead of handling a&amp;nbsp;DataSourceRowChanged event, all of this will already be handled within the BBS and child BBS (actually the parent BO will apply the filter within the exposed child property).&amp;nbsp; So all of this is encapsulated within the data source.&lt;/P&gt;&lt;P&gt;Before I get much deeper, I would stronly suggest looking at StrataFlix as this has already been done and it should get you going down the right path.&amp;nbsp; Also, the StrataFlix sample uses RDL reports, not Report Sharp-Shooter.&lt;/P&gt;&lt;P&gt;It is also very important for you to understand that whether you are using Report Sharp-Shooter, Crystal Reports, Active Reports, or XtraReports, this is all going to be done the same way.</description><pubDate>Tue, 14 Apr 2009 08:38:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>