[NET6] Placing an empty C1FlexGrid on a form: grid has no styles

Posted by: wknauf on 25 August 2023, 5:35 am EST

  • Posted 25 August 2023, 5:35 am EST

    See attached sample: i just added a C1FlexGrid to a form, without any design time modifications. Why has the fixed style not the expected back color, but “Window”?

    C1FlexGridEmpty.zip

    This is slightly irritating :wink:

    Best regards

    Wolfgang

  • Posted 28 August 2023, 4:13 am EST

    Hi Wolfgang,

    Thank you for sharing the sample project. FYI, in the .NET 5/6 versions of the C1FlexGrid, the default BackColor for the Fixed columns (Styles.Fixed.BackColor) has been changed to SystemColors.Window. This is an improvement in the control which is documented in the ChangeLog.6.0.html under the 20212.513 release.

    Best Regards,

    Kartik

  • Posted 28 August 2023, 4:24 am EST

    Thanks for the clarification. I have to admit I don’t consider this a good idea ;-).

    In our app, we use themes, so the issue does not show here. And all our C1FlexGrids are inherited from some base class which probably sets the old .NET 4.8 fixed style colors.

    Best regards

    Wolfgang

  • Posted 29 August 2023, 1:15 am EST

    Hi Wolfgang,

    We apologize for the inconvenience caused to you. As this change is done in the control as an improvement, currently you will need to update the fixed style manually or use themes to customize the fixed cells.

    In the future, if we get more reports like this, we will discuss it with the development team.

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels