Set css class of a TR in c# code
-
I want to set the css class of a Table row in a c# code. The TR attribut is set to runnat="server".
Do good and have good.
-
I want to set the css class of a Table row in a c# code. The TR attribut is set to runnat="server".
Do good and have good.
Hi, r.CssClass = "sss"; Where "r" is and object of TableRow class. I hope this wil help u.
Thanks and Regards, Chetan Ranpariya
-
Hi, r.CssClass = "sss"; Where "r" is and object of TableRow class. I hope this wil help u.
Thanks and Regards, Chetan Ranpariya
But i m using HTML table and it doesnot give CssClass property in C# file[code behind]
Do good and have good.
-
But i m using HTML table and it doesnot give CssClass property in C# file[code behind]
Do good and have good.
Hi, You can do this by following. tbl1.Rows[rowindex].Attributes["class"] = "cssclassname"; here "tbl1" is the id of your HTMLTable and "rowindex" is the index of row in that table. I hope this will help you.
Thanks and Regards, Chetan Ranpariya