Answer: With htmltablerow, you cant find property like class/cssclass.
With such situation, you need to add attribute of “Class” to the desired htmltablerow.
With below code, I am adding class “NavyYellow” to found tablerow “trMain”
Dim trMain As HtmlTableRow
trMain = CType(e.Item.FindControl("trMain"), HtmlTableRow)
trMain.Attributes.Add("class", "NavyYellow")
Asked In: Many Interviews |
Alert Moderator