Problem when binding a list of strings to multiple columns

Сonversation on different topics
Post Reply
kamoz1982
Posts: 1
Joined: Fri Aug 25, 2017 2:09 pm

Problem when binding a list of strings to multiple columns

Post by kamoz1982 » Mon Aug 28, 2017 1:57 pm

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

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

Post by Alex K. » Tue Aug 29, 2017 11:08 am

Hello,

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

Thank you.
Post Reply