c# - Styling controls in a single table cell from the code behind -


i have dynamic table add controls. when open page in firefox controls unerneath each other , in internet expl. horizontally aligned. how can set style of controls code behind?

tabcell.horizontalalign = horizontalalign.center; // doesn't seem work    ibtntableonenew.command += eventhandelertableone;         ibtntableonenew.attributes.add("runat", "server");         ibtntableonenew.commandargument = i.tostring() + "|" + therow["sitealias"].tostring();         ibtntableonenew.imageurl = "~/img/bullet_toggle_plus.png";         tabcell.controls.add(ibtntableonenew);          tabcell.controls.add(cbchecked);          ibtntableonenewcomment.attributes.add("runat", "server");         ibtntableonenewcomment.imageurl = "~/img/pencil.png";         tabcell.controls.add(ibtntableonenewcomment);          tabrow.cells.add(tabcell); 

try setting tabcell.wrap = false. should need.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -