Page 1 of 1

Set ' Keep Group Together' by code

Posted: Fri Aug 02, 2013 10:53 am
by mrapi
Hi !
It is possible to set Keep Group Together for a GroupHeader, by code?
I want to set that optional in my application.
Thanks.

Re: Set ' Keep Group Together' by code

Posted: Fri Aug 02, 2013 1:11 pm
by Alex K.
Hello,

You can use the following code:

Code: Select all

StiGroupHeaderBand groupHeaderBand = report.GetComponents()["GroupHeaderBand1"] as StiGroupHeaderBand;
groupHeaderBand.KeepGroupHeaderTogether = true;
Thank you.

Re: Set ' Keep Group Together' by code

Posted: Fri Aug 02, 2013 1:51 pm
by mrapi
It is working,thanks a lot !

Re: Set ' Keep Group Together' by code

Posted: Sat Aug 03, 2013 4:19 am
by Andrew
Hello,

Great!

Have a nice weekend.