With this code I get the following (NOT_OK.png)
01.Private Sub RadGridView1_ViewCellFormatting(sender As Object, e As CellFormattingEventArgs) Handles RadGridView1.ViewCellFormatting02. If TypeOf e.CellElement Is GridHeaderCellElement Then03. With e.CellElement04. Dim myFont As New Font(New FontFamily("Calibri"), 10.0F, FontStyle.Bold)05. 06. If InStr(.Text, "IN") > 0 Then07. xColor = Color.FromArgb(150, 54, 52)08. ElseIf InStr(.Text, "OUT") > 0 Then09. xColor = Color.FromArgb(54, 96, 146)10. ElseIf .Text = "Fecha" Then11. xColor = Color.FromArgb(38, 38, 38)12. End If13. 14. .DrawBorder = True15. .DrawFill = True16. 17. .Font = myFont18. .ForeColor = Color.White19. .GradientStyle = GradientStyles.Solid20. .BackColor = xColor21. End With22. Else23. Dim xColor As Color = Color.Red24. Dim xWidth As Integer = 525. With e.CellElement26. '.DrawFill = True27. '.NumberOfColors = 128. '.BorderBoxStyle = BorderBoxStyle.FourBorders29. Select Case .ColumnIndex30. Case 9 '0, 9, 1631. .BorderRightColor = xColor32. .BorderRightWidth = xWidth33. End Select34. End With35. End If36.End Sub
what I need is OK.png
Thank you,
