Follow

Dynamically report groupping

In Stimulsoft Reports there are many different ways to do the same thing.

Sometimes this depends on some particular moment of your task. This is the simple example of this.

Example 1

You could change the condition of the Group Header in your code.

C#
var group = report.GetComponentByName("GroupHeaderBand1");
(group as StiGroupHeaderBand).Condition.Value = "{Products.SupplierID}";

Example 2

If you need to add groups with different content, you could add such groups and use Conditions to disable unnecessary groups.

Example 3

You could use Choose() function in Group Header condition like in the attached report template. (see attached report template)

0 Comments

Please sign in to leave a comment.