hmcgeehan
asked on
Adding rows to a table?
Hi
I try to add three rows to a table
private void BuildMyLeaveDetailGrids()
{
TableRow tr = new TableRow();
TableCell tc = new TableCell();
tc.Text = "test";
tr.Cells.Add(tc);
for (int i = 0; i < 3; i++)
{
TableMyLeaveDetails.Rows.A dd(tr);
}
}
but it only adds one when I look at my html page?
Thanks
I try to add three rows to a table
private void BuildMyLeaveDetailGrids()
{
TableRow tr = new TableRow();
TableCell tc = new TableCell();
tc.Text = "test";
tr.Cells.Add(tc);
for (int i = 0; i < 3; i++)
{
TableMyLeaveDetails.Rows.A
}
}
but it only adds one when I look at my html page?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.