Home Forums WinForms controls Xceed Grid for WinForms different cell colors in the selected row Reply To: different cell colors in the selected row

Diane [Xceed]
Moderator
Post count: 1353

Hi Rachel,

This behavior is normal, and is caused by the order in which the different layers are painted. The selection color is painted after the cell’s background, and will therefore ‘override’ it.

There’s two options that we can suggest. You can either make your selection color be transparent, so that if a cell has a background color it will be able to show through. Note however that the color will ‘merge’ with the selection color (if the cell’s background is red and your selection color is a light blue, the cell will appear as a red leaning slightly on purple).

The other option is to remove completely the selection color and instead use only the focus rectangle as your indicator of which row is currently selected.

 

Imported from legacy forums. Posted by Diane [Xceed] (had 404 views)