Page 1 of 1

Hide data source but not group bands

Posted: Thu Oct 20, 2016 6:35 am
by beginner
I'd like to hide `data source`, and only show group header and footer bands. I want to do that to show just summary to the user and avoid details.

I have tried the following code in the `Before Print` event of the group header band, but this gives me zero value in footer bands.

Code: Select all

DataDataSource1.Enabled = bool.Parse(condition2);
I'll be grateful if you could suggest a way to hide just data source (details), but use the summary in the footer bands (summary).

Re: Hide data source but not group bands

Posted: Thu Oct 20, 2016 6:57 am
by MatthiasU
Hi,

try it with CalcInvisible Property of DataBand.

Regards,
Matthias

Re: Hide data source but not group bands

Posted: Thu Oct 20, 2016 7:51 am
by beginner
@MatthiasU, I tried `DataSource1.CalcInvisible = false`, and I'm still getting zeros.

Thanks for your replay, though.

Re: Hide data source but not group bands

Posted: Thu Oct 20, 2016 12:43 pm
by MatthiasU
Shouldn't it be "CalcInvisible = True" ? With this property, all not shown detail rows should be considered in summarize functions.

Edit: I have tested this case and it works great...

Re: Hide data source but not group bands

Posted: Thu Oct 20, 2016 8:20 pm
by Alex K.
Hello,

Please try to the Totals.Sum() function on the footer.

Thank you.

Re: Hide data source but not group bands

Posted: Sun Oct 23, 2016 8:32 am
by beginner
Once again you saved my day, Aleksey. ;)

Re: Hide data source but not group bands

Posted: Sun Oct 23, 2016 4:43 pm
by Alex K.
Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.