Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS tablix Merging cells vertically problem

Tags:

I found the colspan and rowspan property defined in TablixCell,but in report Designer still can't vertical merge cells,if i modify the RDL xml file manually set Rowspan,the reportViewer show me error info:RowSpan must be 1 for CellContents inside a TablixCell.

is there any other way to implement vertical merge cells of tablix ?

like image 380
guaike Avatar asked Mar 27 '11 07:03

guaike


People also ask

How do you merge cells in tablix SSRS?

To merge a block of cells, merge the cells horizontally first. After all cells have been merged into a single cell in each row, select adjacent cells (you can select all adjacent cells in a column) and merge them. In the tablix body area, cells can only be merged horizontally.

How do I merge cells vertically in Rdlc?

Right-Click on your selection in the whitespace area, you should "Merge Cells" in the popup menu. Select "Merge Cells". The two adjacent vertical cells are merged at this stage. You need to write label text again as the merging will erase it.


2 Answers

You have to use Matrix instead of Table. I resolved my this problem by creating a matrix same to tablix, below:

  1. Insert a Matrix. Right Click->Insert->Matrix
  2. Change groupable row to detail row. Right click row->Row Group->Group Properties... Then, in tab "General" Choose "group on" belows "add" and "delete" buttons and click delete to remove group ->OK.

enter image description here

enter image description here

  1. Right Click at the first column of Matrix and choose "Delete Column" option. Choose radio button (Delete columns only)->OK

enter image description here

  1. Right click on the first row of Matrix and choose "Insert row" option -> outside group - above and then another row will be added to matrix. After that, delete row that you right click previous.

enter image description here

enter image description here

  1. Now, you can add row above the detail row and can merge any more

enter image description here

like image 140
Jonathan Avatar answered Sep 26 '22 06:09

Jonathan


If this is only for display purposes, you could try putting a table inside a table. SSRS will let you do this if you delete the grouping columns on the outside table.

Example SSRS Table in Table

Otherwise you are limited to the vertical grouping with Matrices, which still has restrictions on where the vertical merging takes place.

like image 28
scourge192 Avatar answered Sep 25 '22 06:09

scourge192