I have a checkbox in my RadGrid. If that checkbox is checked, then I change the background color for that row in RadGrid1_ItemDataBound:
Protected Sub RadGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
'Change the color of inactive rows
If TypeOf e.Item Is GridDataItem Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim chk_Status As CheckBox = DirectCast(item.FindControl("chk_Status"), CheckBox)
If chk_Status.Checked = False Then
e.Item.BackColor = Drawing.Color.RoyalBlue
End If
End If
End Sub
But if I click on any header column to sort that column, the cells in the alternating rows that are highlighted are not highlighted in the background color I specified.