Protected Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then
Dim oItem As GridDataItem = e.Item
'set the background color of the row pink if it is about to be archived
Dim bArchiveWarning As Boolean = RadGrid1.MasterTableView.DataKeyValues(e.Item.ItemIndex)("ArchiveWarning")
If bArchiveWarning Then
oItem.BackColor = System.Drawing.Color.LightPink
End If
End Sub