Table mytable = new Table();
for (int i = 0; i <= 9; i++)
{
TableRow myrow = new TableRow();
myrow.ID = "row" + i.ToString();
for (int j = 0; j <= 3; j++)
{
TableCell mycell = new TableCell();
mycell.ID = "cell" + i.ToString() + j.ToString();
mycell.Text = "cell" + i.ToString() + j.ToString();
mycell.BorderWidth = Unit.Point(2);
myrow.Cells.Add(mycell);
}
myrow.BorderWidth = 1;
mytable.Rows.Add(myrow);
}
mytable.BorderWidth = Unit.Point(3);
form1.Controls.Add(mytable);
pass border width with Unit