public virtual void CreateCalendarCells(Table TargetControl, DateTime CalendarRelatedDate) { for (int i = 0; i < rowNum; i++) { TableRow tr_cells = new TableRow(); for (int n = 0; n < columnNum; n++) { TableCell tr_cells_cell = new TableCell(); CalendarCellControl ccc = new CalendarCellControl(); ccc.Content.CssClass = this.CalendarCellContentCssClass; CalendarCellControlList.Add(ccc); tr_cells_cell.Controls.Add(ccc); tr_cells_cell.CssClass = CalendarCellTdCssClass; tr_cells.Cells.Add(tr_cells_cell); } TargetControl.Rows.Add(tr_cells); } }