Skip to content

DataGridView styles designer bugs #8593

Closed

Description

@kirsan31

Environment

All

.NET version

All

Did this work in a previous version of Visual Studio and/or previous .NET release?

No

Issue description

Referenceses:
https://developercommunity.visualstudio.com/t/WinForms-DataGridView-styles-designer/1143911
https://github.com/microsoft/winforms-designer/issues/2225

For now DataGridView styles in designer can be split to 3 groups by designer behavior:
pic1

Group 1.

Work absolutely correct, but not displaying default values (because they are absent).

Groups 2 and 3.

Have common bugs / incorrect behavior. When you change any parameter in this styles - the designer will wright to *.Designer.cs this parameter new value + ALL other parameters with default values.
gif1

This can lead to confusing errors. For example this will break system font scaling because of explicitly font set. Also when you open this styles settings it’s impossible to determinate what are default values and what you have changed (if any):
pic2

Group 2.

Didn't not remove all it's code from *.Designer.cs when all changes are removed in designer.

Group 3.

You can’t delete default values from *.Designer.cs - this completely break system font scaling.
gif2
And if you delete def. values manually, they will be bring back after any designer manipulation.


Ideal solution will be that Groups 2 and 3 behave identical and:

  • Place in *.Designer.cs only those values, that you have changed and NO default values.
  • Display default values in styles with not bold text, like in every other place.

This will solve all problems above.

Activity

  1. added
    area-VSDesigner
    untriaged
    on Feb 8, 2023
  2. removed
    untriaged
    on Feb 8, 2023
  3. dkazennov commented on Feb 9, 2023

    @dkazennov
    Contributor

    This issue is put on hold until there will be decisions on #8474 and #8518 (the new task #8599 to define a pattern for default values).

  4. Tanya-Solyanik commented on Oct 25, 2024

    @Tanya-Solyanik
    Contributor

    Since this scenario had not been working in the In Proc designer, it does not meet the current bug bar.

  5. locked and limited conversation to collaborators on Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🪲 bugarea-VSDesignerarea-controls-DataGridView

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions