how to assing alignment to dynamic genrated label

Posted by Prafullshrivastava under Regular Expressions on 5/27/2011 | Points: 10 | Views : 1853 | Status : [Member] | Replies : 1
Hi,

I am created a table with 5 row and 5 colunms and i want to add a lable in 3 column with right allignment.
how to assing alignment to dynamic genrated label.........

Pshrivastava


Responses

Posted by: Ndebata on: 5/27/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
Try to add this to the TD or TableCell style where you want your Label to be right aligned.
tc.Attributes.CssStyle.Add("text-align", "right");

Thanks,
Debata

Prafullshrivastava, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response