Kohanz
Kohanz

Reputation: 1562

RDLC: Display a list with multiple, fixed columns and variable rows

I am developing a report using RDLC (Winforms version) in VS 2010. Part of the report is listing a series of images (with text captions). The list of images is of variable length. I would like to conserve real-estate on the report by displaying two images per "row" in the list of images.

For example, if the number of images is 2, I would display:
A B

If there are 3 images:
A B
C

If there are 5 images:
A B
C D
E

... and so on.

I have seen this (http://blogs.msdn.com/b/chrishays/archive/2004/07/23/horizontaltables.aspx) blog, but it is for a fixed number of rows, which does not apply in this case. I want the list to grow, first left-to-right, but increasing in rows for every two images (as shown above).

Is there any way to accomplish this with RDLC?

Upvotes: 1

Views: 10302

Answers (1)

Kohanz
Kohanz

Reputation: 1562

Found a hack that answers my own question. Basically, you create as many vertical lists as you need columns (in my case: 2) and then set conditional visibility for each list so that they only show a subset of the items in their query.

Look at this thread: http://forums.asp.net/t/1373432.aspx

Upvotes: 3

Related Questions