Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I use a GroupFooterBand to display a cumulative page sum (subtotal) for a table with order positions. I use a custom summary funtion to display this cumulative page sum.

                                    Below the table with the order positions, other tables with data like service cost, VAT and discounts follow. For this reason, I would like to hide the GroupFooterBand with the subtotal on the last page of the order. The same applies if the table with order positions is short and everything fits on a single page.

                                    However, I can't access the page information in the BeforePrint event of the band. When I set e.cancel true in the PrintOnPage event of the table or table cell, the line with the GroupFooterSum is not printed but a blank line appers instead.

                                    How can I hide the band at the end of the table?

                                0

                                Hello Klaus,

                                I believe that you can utilize the DataBrowser.HasLastPosition property within the GroupFooter.BeforePrint event. For reference, see a sample code in the attachment. Hope this helps.

                                Thank you,
                                Valery

                                Q230489.zip
                                0

                                Hello Valery,

                                I should have mentioned that I looked already at the dataBrowser but haven't been able to make it work to my requirements.

                                Please have a look at the attached sample project. Please note that this shows two orders (with only one page each) and the summary is hidden only on the 2nd page.

                                This is obviously a simplified example but it should show the basic desired layout.

                                Thank you for your support.
                                Klaus

                                ReportSummarySample.zip
                                0

                                Hello Klaus,

                                Thank you for the additional clarification. I believe that you can use the CurrentRowIndex and RowCount properties of your DetailReportBand to define whether the group footer should be shown. Attached is an updated sample illustrating this approach. Let me know whether it meets your requirements.

                                Thank you,
                                Valery

                                Q230489.zip
                                0

                                Hello Valery,

                                Thank you for your help, this should resolve my issue.

                                Klaus

                                0

                                Sorry, the previous pos was meant to close the issue.

                                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