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 »

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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dynamic Group in StiGroupHeaderBand

Post by Vital »

No. Your code is not correct. When you call report rendering report is already compiled. So your expression can't be compiled and it don't work.

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

Dynamic Group in StiGroupHeaderBand

Post by alejandro »

Where I can put the code (if is possible)?

Thanks in advanced...


Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Dynamic Group in StiGroupHeaderBand

Post by Edward »

If you want to change the group Condition dynamically, then please write the method which you can call dynamically from the group expression.

Please see the flash tutorial on the process of creating of the own function:

http://www.stimulsoft.com/livedemos/Rep ... ction.html

Also 'Code Tab' could be used as a place for writing of the method which is required for calculating of the result for the group.

Thank you.
Post Reply