tags:

views:

41

answers:

1

Is there an equivilent in ASP.Net Table or HtmlTable to the <col></col> element set in HTML to apply a style or class to an entire column? Ideally I am looking to do this programmatically for a WebPart rather than in the ASP.Net designer.

+1  A: 

An HtmlTable could contain HtmlGenericControls, which gives you a col:

var t = new HtmlTable();
t.Controls.Add(new HtmlGenericControl("col"));
Mark Brackett