public void UpdateCells(AspNetCore.ReportingServices.ReportRendering.TableRow renderRow) { int count = this.m_cells.Count; TableCellCollection tableCellCollection = (renderRow != null) ? renderRow.TableCellCollection : null; for (int i = 0; i < count; i++) { this.m_cells[i].SetCellContents((tableCellCollection != null) ? tableCellCollection[i] : null); } }
public ShimTableRow(Tablix owner, int rowIndex, AspNetCore.ReportingServices.ReportRendering.TableRow renderRow) : base(owner, rowIndex) { this.m_cells = new List <ShimTableCell>(); this.m_height = new ReportSize(renderRow.Height); TableCellCollection tableCellCollection = renderRow.TableCellCollection; if (tableCellCollection != null) { int count = tableCellCollection.Count; this.m_rowCellDefinitionMapping = new int[owner.RenderTable.Columns.Count]; int num = 0; for (int i = 0; i < count; i++) { int colSpan = tableCellCollection[i].ColSpan; for (int j = 0; j < colSpan; j++) { this.m_rowCellDefinitionMapping[num] = ((j == 0) ? i : (-1)); num++; } this.m_cells.Add(new ShimTableCell(owner, rowIndex, i, colSpan, tableCellCollection[i].ReportItem)); } } }