Search code examples
asp.netcells

How to add new table in tablecell in asp.net


How to add a new table in tablecell... .

Table tblTasks = new Table();

TableRow tr = new TableRow();


tr.Cells.Add(new Table());

something like that


Solution

  • Create TableCell with your Table and add that cell like below

    var cell =new TableCell();
    cell.Controls.Add(new Table());
    tr.Cells.Add(cell);