Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4032
How disable active cell appearance from app styling
posted

I have read some posts about disable app styling for a certain grid but could not resolve it to my problem. I can not see any logic there.

I use a predefined .ISL style library in my app (office black.isl. I have disabled the active row and selected row appearance by this code:

            e.Layout.Override.ActiveAppearancesEnabled = DefaultableBoolean.False;
            e.Layout.Override.SelectedRowAppearance.Reset();
            e.Layout.Override.ActiveCellAppearance.Reset();

But selecting a cell the cell backcolor is still set to some orange color and backcolor of cells are not visible. All what I want is a black color (thickness 2) around the active cell. Selected cells should have also a black color of thickness 1. Default border color is light grey.

I tried this but does not work (see image attached):

            // Active cell
            band1.Override.ActiveCellAppearance.Reset();
            band1.Override.ActiveCellAppearance.BackColor = Color.Transparent;
            band1.Override.ActiveCellAppearance.BorderColor = Color.Black;
            band1.Override.ActiveCellBorderThickness = 2;

            // Selected cells
            band1.Override.SelectedCellAppearance.Reset();
            band1.Override.SelectedCellAppearance.BackColor = Color.Transparent;
            band1.Override.SelectedCellAppearance.BorderColor = Color.Black;

Can someone give me some advises to achieve this?

Regards

Markus

 

 

Parents Reply Children
No Data