.Net wrappers for html components do not include a width parameter (including HtmlTableRow ). and for those that contain the width property, this solution requires .toString ().
another simple approach would be to use inline CSS styles (the first line is the answer, this is just a usage pattern that I used to test the solution):
c.Style.Add("width", "25% !important"); c.Style.Add("border-color", "Red"); c.Style.Add("border-style", "solid"); c.Style.Add("border-width", "1px");
where c is an element
Omid S.
source share