DataTables, DataRows, and DataColumns do not have any width or height - they are not directly presented to the user and have no UI - the width and height only have any relevance for the presentation controls which display the data they contain.
In this case, you are using HTML tables to display your data, so you are (correctly) using the
th width
setting, but you have the format wrong:
HTML th width Attribute[
^] - the
20%
needs to be in double quotes:
sb.Append("<th width=\"20%\" style = 'background-color:...
Or included in the CSS
style
:
sb.Append("<th style='width:20%;background-color:...