Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
DyanmicTable indicates table name please help


What I have tried:

if (DyanmicTable.Rows.Count == 0)
            {
           


                for (int r = 1; r < 3; r++)
                {
                    TableRow row = new TableRow();
                    row.BorderWidth = 1;
                    //add three cells
                    for (int j = 1; j < 4; j++)
                    {
                        TableCell cell = new TableCell();
                        cell.BorderWidth = 1;
                        cell.Text = String.Format("Row {0}, column {1}", r, j);
                        row.Cells.Add(cell);
                    }

                    DyanmicTable.Rows.Add(row);
                }

            }
Posted
Comments
[no name] 4-Mar-21 16:29pm    
Just add the row after it's finished loading ... why do you need "another" click? And if it's not async and / or re-entrant, it won't work properly (your 2 "clicks").

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900