Thank you for writing.
The provided information is not enough for me to replicate the issue locally. However, there are several possibilities that can achieve a similar result. The first one is if you have subscribed to the CellFormatting
event and introduced any changes for the CellElement.ForeColor
. Due to the UI virtualization in RadGridView
, cell elements are created only for currently visible cells and are being reused during operations like scrolling, filtering, grouping and so on. In order to prevent applying the formatting to other columns' cell elements (because of the cell reuse) all customization should be reset for the rest of the cell elements. Additional information is available here: http://docs.telerik.com/devtools/winforms/gridview/cells/formatting-cells
Another option is if you have a custom theme. I suppose that you may have applied a fore color for the IsSelected
state (or some other state) of the cell, but you don't reset the color for the normal state of the cell. Please refer to the attached screenshot. On the left side of Visual Style Builder, you should select the desired cell element. On the right side at the top select the desired element state and at the bottom right you can see the applied repositories and modify the style according to your requirement, e.g. apply a back color for the default state of the cell element. You can read more details about using the Visual Style Builder here:
1. Loading predefined themes
2. Working with Repository Items
3. Saving and Loading Theme Files
4. Loading Themes from an External File
5. Loading Themes from a Resource
6. Applying Theme to a Control
I hope this information helps. Should you have further questions I would be glad to help.
Telerik by Progress