I change the Cell Elements ForeColor To Red if the value is less than Zero.
It works fine on Load. When I scroll beyond the text that was Default Black, and scroll back up it now becomes red. When I click to Export the grid to Excel the Forecolor returns.
Any ideas on why my color changes when I scroll past the values or how I can prevent it from changing to red?
Attached are screen shots of the rows and how the changed after scrolling.
Private Sub GridPrimerResults_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles GridPrimerResults.CellFormatting
If CInt(e.CellElement.RowInfo.Cells(1).Value) <= 0 Then
e.CellElement.NumberOfColors = 1
e.CellElement.ForeColor = Color.Red
e.CellElement.DrawFill = True
End If
End Sub
It works fine on Load. When I scroll beyond the text that was Default Black, and scroll back up it now becomes red. When I click to Export the grid to Excel the Forecolor returns.
Any ideas on why my color changes when I scroll past the values or how I can prevent it from changing to red?
Attached are screen shots of the rows and how the changed after scrolling.