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

                                    I have a report where some detail rows are hidden with e.Cancel = True
                                    in the DetailBand BeforePrint event.

                                    Is it also possible to hide the Group header and footer if all rows in a group are hidden ?

                                    Thanks,

                                    Per

                                0

                                Hi Per,

                                It seems that we already discussed a similar problem in the suppress group footer if group header is suppressed thread. Please review it and let us know if the problem still exists.

                                Thanks,
                                Sergi

                                0

                                Hi Sergi,

                                I am not able to find a solution to my problem in the
                                thread you suggest.

                                My problem is that the group header already is printed when I know if I
                                would like to suppress it.

                                I am not able to check in advance if there will be any rows in the
                                group or not.

                                Thanks,
                                Per

                                0

                                Hi Per,

                                Thank you for your feedback. Now I understand the problem. I can suggest you two approaches to resolve your problem:

                                1. If you can find out which detail bands will be hidden in the GroupHeaderBand.BeforePrint and GroupFooterBand.BeforePrint event handlers, then you can hide corresponding group header and footer.

                                2. You can use the XtraReport.CreateDocument method to generate a report without printing it. In this case, you will be able to get indexes of group headers and group footers that have no detail bands. While printing a report, you should hide these group headers and footers.

                                We look forward to your feedback once you have had the opportunity to try this approach.

                                Thanks,
                                Sergi

                                0

                                Hi Sergi,

                                I think that will solve my problem !

                                Thanks,

                                Per

                                0

                                Hi Per,

                                Please feel free to reactivate this issue if this approach won't help you.

                                Thanks,
                                Sergi

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.