I'm trying to create a table dynamically through the backend. I've stepped through my code and cannot find any problems. The table simply doesn't show. Here is the code -
Table tblEmployeeList = new Table();
foreach (DataRow row in dtEmployList.Rows)
{
TableRow tRow = new TableRow();
foreach(DataColumn dCol in dtEmployList.Columns)
{
TableCell tCell = new TableCell();
tCell.Text = row["Username"].ToString();
tRow.Cells.Add(tCell);
}
tblEmployeeList.Rows.Add(tRow);
}