Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • In my report the number of XRTable rows isn't fixed and depends on data provided each time when a detail band is printed. So, I need to add or remove table rows at runtime.

                                0

                                hi plato,

                                In my report the number of XRTable rows isn't fixed and depends on data provided each time when a detail band is printed. So, I need to add table rows at runtime.

                                for this I wrote code in BeforePrint event of Detail , but the problem is that it is adding more and more rows as per records in the dataset for example for the 1st record it is adding 1 row for the 2nd it is addming 2 rows and so on..

                                code i wrote is as follows

                                    XrTable2.SuspendLayout()
                                            Dim tableCell As New XRTableCell
                                            tableCell.Name = "newCell"
                                            tableCell.Text = "NewCell"
                                            tableCell.Width = 200
                                            ' Change the table.
                                            XrTable2.Width = XrTable2.Width + tableCell.Width
                                            XrTable2.Rows(0).Cells.Add(tableCell)
                                            'Next
                                            '' Perform the table's layout.
                                            XrTable2.PerformLayout()
                                        End If

                                Reply ASAP
                                this is an urgent issue.

                                Thanking you
                                Imran

                                0

                                Hi Imran,

                                Is your table adjusted to show data from the same DataSource as the Report. If so, you should use the Report's BeforePrint event and create a single row in the Table, fill it with Cells and finally bind them to data. I have attached a sample project showing how this can be done. Please let us know if this solution meets your requirements or not.

                                Thanks,
                                Plato

                                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