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 set selected and active cells appearance independent
posted

Hi all,

I'm trying so apply selected and active cells appearance in a way that selected cells have backcolor and forecolor. The active cell should have no color, only a thick black border. Some cells have some meaningfull backcolor and I like to see theses backcolor for the active cell (not for selected cells). I have tried to achieve this with the following code at Initialize_Layout event:

            // Default-Appearance für selected Cells
            e.Layout.Override.SelectedAppearancesEnabled = DefaultableBoolean.True;
            e.Layout.DefaultSelectedBackColor = ClientParam.Instance.ParamColors.GetColor(Color.LightGrey );
            e.Layout.DefaultSelectedForeColor = ClientParam.Instance.ParamColors.GetColor( Color.Black );
            e.Layout.Override.SelectedCellAppearance.BorderColor = Color.White;
            e.Layout.Override.SelectedCellAppearance.BorderColor2 = Color.White;

            // Default-Appearance for active cells
            e.Layout.Override.ActiveAppearancesEnabled = DefaultableBoolean.True;
            e.Layout.Override.ActiveCellAppearance.BackColor = ClientParam.Instance.ParamColors.GetColor( Color.Transparent );
            e.Layout.Override.ActiveCellAppearance.ForeColor = ClientParam.Instance.ParamColors.GetColor( Color.Empty );
            e.Layout.Override.ActiveCellAppearance.FontData.Bold = DefaultableBoolean.True;
            e.Layout.Override.ActiveCellAppearance.BorderColor = Color.Black;
            e.Layout.Override.ActiveCellBorderThickness = 3

The active cell looks LightGrey with forecolor = black and I can not see the cells backcolor and forecolor.

Does anybody has some directions for me?

Thank you and best regards

Markus

Parents Reply Children
No Data