Page 1 of 1

Problem when binding a list of strings to multiple columns

Posted: Mon Aug 28, 2017 1:57 pm
by kamoz1982
We are trying to build a proof of concept, we have a list of objects of type ClientProducts

The client product objects contains 2 properties :
- ClientName of type string
- List<ProductName> ProductNames of type List<String>

The report format should the following :

ClientName ProductName1 ProductName2 ProductName3 ProductName...

By convention, the number of ProductNames per client is constant, so every client has the same number of client products as any other one in the list, so if client A has 3 products, client B will have 3. But the number of products per client by itself is variable and can vary from 1 till n.
So, we need to bind the List<ClientProducts> to the report , as the number of productNames can vary, we need to create kind of a pivot in Stimulsoft.
Thank you for your help

Re: Problem when binding a list of strings to multiple colum

Posted: Tue Aug 29, 2017 11:08 am
by Alex K.
Hello,

You can try to use the Cross-Data component for this task.

Thank you.