public TablixCell CreateCell(string fieldName, uint? colSpan, uint? rowSpan,bool hidden) { TextboxType textbox = null; if (hidden) { textbox = CreateTextbox(fieldName, true); } else { textbox = CreateTextbox(fieldName); } var cellContents = new CellContents() { Textbox = textbox }; if (colSpan != null && colSpan > 1) { cellContents.ColSpan = colSpan; } if (rowSpan != null && rowSpan > 1) { cellContents.RowSpan = rowSpan; } var cell = new TablixCell { CellContents = cellContents.Create(), IsEmpty = false, HasSetValue = true }; return cell; }
private Rdl.TablixCellType CreateTablixCell(int i, string fieldName) { TablixCell cell = new TablixCell(); //cell.CellContents CellContents contents = new CellContents(); contents.Textbox = CreateTableCellTextbox(i, fieldName); cell.CellContents = contents.Create(); return cell.Create(); }