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?
Filter grid based on group summary value
Answers
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