Current filter:
                                You should refresh the page.
                                  • Dear Sir/Madam,

                                    Sir do check the attachment, the Attached Zip file contains Query Image
                                    "A1.Png", Sir we want to Implement "EvenStyle" or "OddStyle" in
                                    "GroupFooter1", but the GroupFooter1 Details are not coming in Even/Odd
                                    Colour.

                                    The Sample XtraReport "ContractSTT.cs" is attached herewith for your
                                    Reference.

                                    Thanks & Regards

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,

                                The Even and Odd styles are applicable to DetailBand content only. In other words, these styles do not work in GroupFooter, because they are intended to operate with data records.
                                In your scenario, the best way to accomplish this task is to handle the GroupFooter.BeforePrint event and change the band content appearance manually. For example, you can create a global counter variable to control what appearance settings should be applied. For example:

                                [C#]
                                int counter = 0; object groupValue = null; private void GroupFooter1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { if (counter % 2 == 0) { //Apply Even style } else { //Apply Odd style } object currentGroupValue = ((GroupFooterBand)sender).Report.GetCurrentColumnValue("YourGroupFieldName"); if (groupValue != currentGroupValue) { groupValue = currentGroupValue; counter++; } }
                                • Magne Roald 02.10.2019

                                  Hello!

                                  Can I solve such task without using scripts but using new Expression bindings approach instead?

                                • Andrey (DevExpress Support) 02.11.2019

                                  Hello,
                                  Unfortunately, the current version of our XtraReports Suite doesn't provide the capability to set an odd/even style for a group header/footer band via an expression. I passed your request to our R&D team so that they will research the possibility of implementing this functionality in the future.