Hello! Thanks for answering. The CellFormatting event fires for another rules that I setup. Below the code from the event. How can I squeeze the painting of the row in gray if cell value of Status column = "Finalizata"? Cant figure it out.
Private Sub RadGridView1_CellFormatting2(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.CellFormatting
If e.CellElement.ColumnInfo.HeaderText = "Intarziere" Then
If e.CellElement.RowInfo.Cells("Diferenta").Value + 5 > 0 Then
e.CellElement.DrawFill = True
e.CellElement.ForeColor = Color.White
e.CellElement.NumberOfColors = 1
e.CellElement.BackColor = Color.Red
Else
e.CellElement.DrawFill = True
e.CellElement.ForeColor = Color.Black
e.CellElement.NumberOfColors = 1
e.CellElement.BackColor = Color.LightGreen
End If
Else
e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local)
e.CellElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local)
e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local)
e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
End If
End Sub