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 Mike!
It works, finally! thank you very much for your help. It was really appreciated.
Try setting ActiveAppearancesEnabled to false, in addition to SelectedAppearancesEnabled.
Effectively, if I don't load style and only if I add these lines in the InitiliazeLayout event :
DisplayLayout.SelectionOverlayColor = SystemColors.Highlight;DisplayLayout.SelectionOverlayBorderColor = SystemColors.Highlight;DisplayLayout.SelectionOverlayBorderThickness = 1;
Then it works. But I want that the style is loaded and I don't want to edit the isl directly. So I try your line :
DisplayLayout.Bands[0].Override.SelectedAppearancesEnabled = DefaultableBoolean.False;
But it still doesn't work ... :( I really do not understand why. I tried a lot of things.
Any other ideas?
Hi Benoit,
FrancisVital said:I forgot to say that we load a style when the apps opens (Aero.isl) with the StyleManager. It is loaded after I set the properties discussed early.
That's why it's not working, then. Your isl file is setting a BackColor on the selection. You need to turn that off in the isl or else do this:
band.Override.SelectedAppearancesEnabled = DefaultableBoolean.False;
Hi Mike,
it still doesn't work. I attached an image to show what happens. I forgot to say that we load a style when the apps opens (Aero.isl) with the StyleManager. It is loaded after I set the properties discussed early.
In the image attached, the selected row has a fat border around it. It appears because I set SelectionOverlayColor. As you can see, the cell Status with the text "Not validated" is supposed to be the same color as the other rows.