Ticket Q31647
Visible to All Users

Show group summaries only on one level of grouping

created 17 years ago

Hi,
I'm trying to use the cxGrid to present a fairly specifically customised grid in my application. My grid has a fixed grouping setup of 2 levels, and I'm using the BandedTableView.
I am wanting to have group summaries in my grid - but ONLY on the first level of grouping, not the second. I find that if I turn on group summaries that they appear on all levels of grouping and I cannot see how to turn it off on the second level. Is there an easy workaround to this, perhaps an override of the BandedTableView?
Regards,
Sandy MacPherson

Show previous comments (7)
Serge (DevExpress Support) 17 years ago

    Hi Eugene,
    I cannot seem to edit the support centre query on the website so I am sending this as an email again. How do I edit support centre issues that I created?
    I have implemented your solution and it works perfectly for grid views that are in the grsStandard grouping mode, but falls apart for grid views using the grsOffice mode. I see in the grid source code that the VisualLevel is dependent on this grouping mode setting but I cannot see an easy way to get around this. The VisualLevel property comes through one less when in Office than in Standard mode, but adjusting the solution you gave to check for (VisualStyle <> 1) makes it look right but throws off the hit-testing of the row under the open one and you also lose the final summary if you open the last row in a group. Please see the attached project - I have modified the one you sent me.
    Regards
    Sandy MacPherson

    DevExpress Support Team 17 years ago

      Hi Sandy,
      Thank you for the clarification. We are studying your problem, and will try to find a better solution for you. Just give us some time. Thanks for your patience.
      Thanks,
      Eugene

      DevExpress Support Team 17 years ago

        Hi Sandy,
        The implementation of this feature is an intractable problem. I suggest you override the TcxCustomGridRowViewInfo.HasFooter method (and also all dependent class methods) and change its code to make the footers visible only for the first grouping level.
        This solution works only for two level grouping. If you want to provide this functionality for more grouping levels, I suggest that you upgrade your ExpressQuantumGrid to the latest, v6. Sorry, but introducing this functionality in v5 will require an enormous amount of coding. You can order the upgrade via your Client Center account.
        I attached a sample illustrating this solution. Try it, and let me know how it works for you.
        >>
        How do I edit support centre issues that I created?
        <<
        To edit your reports, you need first to log into the Support Center using the credentials which you utilize to download and install our products.
        Thanks,
        Eugene

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.