int tblRows = 1; // 줄수
        int tblCols = 4; // 칸수

        Table tbl = new Table();
        Controls.Add(tbl);

        for (int i = 0; i < tblRows; i++)
        {
            TableRow tr = new TableRow();
            for (int j = 0; j < tblCols; j++)
            {
                TableCell tc = new TableCell();
                TextBox txtBox = new TextBox();
                txtBox.Text = "RowNo:" + i + " " + "ColumnNo: " + " " + j;
                tc.Controls.Add(txtBox);
                tr.Cells.Add(tc);
            }
            tbl.Rows.Add(tr);
        }

+ Recent posts