Set ' Keep Group Together' by code

Stimulsoft Reports.NET discussion
Post Reply
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Set ' Keep Group Together' by code

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Set ' Keep Group Together' by code

Post 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.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Re: Set ' Keep Group Together' by code

Post by mrapi »

It is working,thanks a lot !
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Set ' Keep Group Together' by code

Post by Andrew »

Hello,

Great!

Have a nice weekend.
Post Reply