Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add columns to a table?

Status
Not open for further replies.
Jun 5, 2006
28
US
Hi,
I know you can add a row to a table by doing

Table table = new Table();
table.Rows.Add(new Row());

How would you go about adding a column to that table?

Thanks.
 
Hmmm, so if i wanted to add a column to the entire table i would have to traverse every row and add one additional cell?

Thanks
 
When building an HTML table, then yes it has to be done that way, unlike a grid, or db table where you define the columns before rows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top