Link to home
Start Free TrialLog in
Avatar of hmcgeehan
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.Add(tr);
        }

    }

but it only adds one when I look at my html page?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of AndyWHV
AndyWHV
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial