Group 1: Payment Type
Group 2: Product ID
There is a form that allows the user to indicate if they want to group by payment type and disable/enable Group 1 in form code:
Code: Select all
if (!chkGroupByPayment) {
GroupHeaderBand1.Enabled = false;
GroupFooterBand1.Enabled = false;
}
The resulting output looks like this:
If Group 1 is disabled, it should only group by Product ID and look like this:ORDER 1001 PRODUCT ABC123 PAY: Cash
Total for ABC123: 1
ORDER 1002 PRODUCT ABC123 PAY: Credit Card
Total for ABC123: 1
How can I disable Group 1 so that it's grouping option is ignored and only Group 2 is active?
ORDER 1001 PRODUCT ABC123 PAY: Cash
ORDER 1002 PRODUCT ABC123 PAY: Credit Card
Total for ABC123: 2