Dynamic Group in StiGroupHeaderBand

Stimulsoft Reports.NET discussion
alejandro
Posts: 19
Joined: Tue Dec 04, 2007 11:36 am
Location: Brazil

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

Hi, how i can pass a dynamic group to a StiGroupHeaderBand.Condition via application from a variable's dictionary??


Thanks..

Alejandro.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dynamic Group in StiGroupHeaderBand

Post by Vital »

You want use variable as group condition?

Thank you.
alejandro
Posts: 19
Joined: Tue Dec 04, 2007 11:36 am
Location: Brazil

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

yes.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dynamic Group in StiGroupHeaderBand

Post by Vital »

You can use following expression in group condition:

Code: Select all

{variable}
Thank you.
alejandro
Posts: 19
Joined: Tue Dec 04, 2007 11:36 am
Location: Brazil

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

Better question.... How I can change dynamically the Data Column of the GroupHeader using a variable?

Thanks
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dynamic Group in StiGroupHeaderBand

Post by Vital »

For example:

Code: Select all

{MyDataSource[myvariable]}
Thank you.
alejandro
Posts: 19
Joined: Tue Dec 04, 2007 11:36 am
Location: Brazil

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

ok, work fine.

but if i want to group using two coluns.?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dynamic Group in StiGroupHeaderBand

Post by Vital »

For example:

Code: Select all

{MyDataSource[myvariable]}.{MyDataSource2[myvariable2]}
Thank you.
alejandro
Posts: 19
Joined: Tue Dec 04, 2007 11:36 am
Location: Brazil

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

Ok, thanks..

But if i want to create dynamic group like this...

in the report's event BeginRenderEvent put the following code:

GroupHeader1.Condition.Value = "{RecursosProdMO[col1]}.{RecursosProdMO[col2]}"; //here can create dynamic groups in the report

this line din't work.

Thanks
alejandro
Posts: 19
Joined: Tue Dec 04, 2007 11:36 am
Location: Brazil

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

Is possible to create a dynamic group?

this line din't work.

//line int BeginRenderEvent event of the report

GroupHeader1.Condition.Value = "{RecursosProdMO[col1]}.{RecursosProdMO[col2]}"; //here can create dynamic groups in the report
Post Reply