Hi!
We configured at loading time some conditonnal formatting on columns of the grid. It works great. The formatting set cell back color.
But if the row is selected then the selected row appearance is taken instead of the valuebased appearance. Is there any way to show the correct back color even if the row is selected ?
Best regards,
Benoit
Hi Benoit,
Try this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; layout.SelectionOverlayColor = SystemColors.Highlight; }
This will make the selection work like an overlay (like MS Excel) instead of changing the color of the cells directly. This way your users will be able to see both the selection and the ValueBasedAppearance.
thanks for your answers but it doesn't work. I tried with :
DisplayLayout.SelectionOverlayColor =
SystemColors.Highlight;
DisplayLayout.SelectionOverlayBorderColor =
DisplayLayout.SelectionOverlayBorderThickness = 1;
It puts a large rectangle around each selected cell or selected row. So I put SelectionOverlayBorderThickness to 1 but I still cannot see my back color. also it now puts a different border color when the cell is selected but it is not the one the represent the back color. Don't know why.
Any other ideas?