You can use table.style.add() to change the font,table-layout,border-c
Let me know if you have any question
Ganesh Dutt Upadhyay
Hello, I created a Table from the code and put it into the form. I do not do anything, but my html table looks like : <table border="0"> and I cannot change borders. I need border="1"
My code looks like:
Table table = new Table();
TableRow hearderrow = new TableRow();
hearderrow.CssClass = "tr";
TableCell heardercell1 = new TableCell();
TableCell heardercell2 = new TableCell();
heardercell1.Text = "List Name:";
heardercell2.Text = "Budget:";
hearderrow.Cells.Add(heard
hearderrow.Cells.Add(heard
//Add header to a table
table.Rows.Add(hearderrow)
//Add content to a table
for (int i = 0; i <3; i++)
{
TableRow row = new TableRow();
TableCell cell1 = new TableCell();
TableCell cell2 = new TableCell();
cell1.Text = tempList.listName.ToString
cell2.Text = "$" + tempList.budget.ToString()
//insert cells into a row
row.Cells.Add(cell1);
row.Cells.Add(cell2);
//insert row into a table
table.Rows.Add(row);
}
table.DataBind();
form1.Controls.Add(table);
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: jcoehoornPosted on 2008-07-07 at 12:42:56ID: 21947997
table.Border = 1;