Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    I want to create a reoprt based on web page controls values eg:
                                    I want to display gridview data in detail section of the report. I want to display report header based on some text field values.
                                    I tried to create two dynamic datatables (one from datagrid and one from text fields) and then bind to xtraReport. Anyway it didn't work.

                                    Can you please help me to find a solution for this.
                                     if (!IsPostBack)
                                            {
                                                objBusOp = new businessOperations();
                                                mgtTRCoverSheet report = new mgtTRCoverSheet(); // Report Class
                                                report.DataSource = objBusOp.getSelectedRecHeaderde(selectedHIDs, selectedRevs, connectionStr); // return a datatable
                                                
                                                ReportViewer1.Report = report;
                                            }

                                    Thank you.

                                    Pri

                                0

                                Hi Pri,

                                I suggest that you use a slightly different approach to accomplish this task.
                                In the XtraReport create a set of Parameters (XtraReport.Parameters collection) to bind fields in the header area.
                                Then create a DataTable for the repeating values shown in the Detail Band and set it to XtraReport.DataSource.
                                If it does not help, please also set the XtraReport.DataMember as follows :XtraReport.DataMember = ((DataTable)XtraReport.DataSource).TableName;
                                We look forward to your feedback, once you have had the opportunity to test this approach.

                                Thanks,
                                Andrew

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners