This example demonstrates how to dynamically create a report based on the GridControl at runtime. This means that all filtering, sorting and grouping conditions selected in the grid are also applied in the report. To accomplish this task, it is necessary to create a report with all the necessary bands, bind it to a data source, and adjust all the necessary options. You can use this approach if you need to insert a report based on GridControl into another report.
[Update]
Starting with version 15.2, you can use GridReportManagerService to convert and export GridControl by using XtraReports.
Question Comments
Added By: Goce Sapkar at: 7/19/2013 4:58:08 AM
Great example. It helped me a lot.
What if we have master-detail relationship in the GridControl. How could i print them in this report ?
<dxg:GridControl.DetailDescriptor>
<dxg:DataControlDetailDescriptor x:Name="gridDetailDescriptor" ItemsSourceBinding="{Binding SampleBinding}" ShowHeader="false">
<dxg:GridControl x:Name="detailGrid" AutoPopulateColumns="True">
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" NavigationStyle="Row" ShowTotalSummary="True" AllowEditing="False" S ShowGroupPanel="False" />
</dxg:GridControl.View>
</dxg:GridControl>
</dxg:DataControlDetailDescriptor>
</dxg:GridControl.DetailDescriptor>
Hello,
Can we use below helper in our application freely (we have DXperience license). If we cannot please inform us as soon as possible.
B.R.
Murad BAŞDAĞ
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T288902: Can we use the ReportHelper from E4658 in our application freely?. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.