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 ?
You have to use Matrix instead of Table. I resolved my this problem by creating a matrix same to tablix, below:
- Insert a Matrix. Right Click->Insert->Matrix
- 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.
- Right Click at the first column of Matrix and choose "Delete Column" option. Choose radio button (Delete columns only)->OK
- 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.
- Now, you can add row above the detail row and can merge any more
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.
Otherwise you are limited to the vertical grouping with Matrices, which still has restrictions on where the vertical merging takes place.
As far as I know, the only way to merge vertically, is to use a Matrix instead of a Table.
http://gotreportviewer.com/matrices/index.html
So my trick is I highlighted the top row of the column I wanted to merge the cells, and changed the border properties to remove the bottom line. When you preview the report, the cells look merged.