t1t1an0
t1t1an0

Reputation: 281

How do you merge vertically-adjacent tablix cells in MS Visual Studio 2010?

Selecting horizontally-adjacent tablix cells and right-clicking on it gives you a merge option:

enter image description here



But doing the same on vertically-adjacent tablix cells doesn't:

enter image description here

Upvotes: 1

Views: 1285

Answers (2)

Jonnus
Jonnus

Reputation: 3028

As already noted by Bushell, this behaviour is because you are trying to combine a cell that is within a group, and one which is not in a group.

Assuming you want the behaviour where the cell in Column 1 spans two rows, and the cells in column2 span 1 row each then this can be achieved by using a tablix as your starting structure, and altering it to fit as follows

  1. Create a tablix, and then select the Row header and right click, choosing Add Group -> Parent Group. Group by what you want each merged cell to show.

  2. Add your detail to each row in the group

The design will then look like this

enter image description here

And when run, like this - note the merged cells for the Month name

enter image description here

This is the only way to merge cells vertically, when they are bound in the same group as indicated by the circled ( in the Row headers.

Hopefully this explains the limitation of using SSRS to merge cells, and how to work around them. Without an indication of your final desired layout it is difficult to advise further.

Upvotes: 1

bushell
bushell

Reputation: 550

It is because you are trying to merge a cell that is part of a group, and a cell that is not part of the same group.

You can only merge cells vertically that are part of the same group.

Upvotes: 1

Related Questions