Ticket Q103267
Visible to All Users

Filter grid based on group summary value

created 17 years ago

I have a grid that is grouped by column A. Column A has two group summary items (count and sum). I would like to code a filter on the grid to show only grouped records meeting a criteria of Count of Column A greater than 1.
In SQL, this would be equivalent to HAVING COUNT(*) > 1 in an aggregate query. Is there a way to do this with the grid?

Answers

created 17 years ago

Dear Sam,
I apologize, the ExpressQuantumGrid doesn't support this functionality. It would be theoretically possible to achieve the desired effect by handling the DataController.OnFilterRecord event of a GridView, but groups aren't yet completely set up at this stage. In the meantime, excluding a record from the list of records doesn't allow the DataController to correctly complete the process.
As a way out, if you're using an SQL backend, you may obtain only the necessary rows by introducing the HAVING COUNT clause in your SQL statement.
Thanks,
Serge

    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.