Skip to content

An error dialog pop-up when edit the DefaultCellStyle property in DataGridView control  #3047

@John-Qiao

Description

@John-Qiao

.NET Core Version:

5.0.100-preview.4.20202.8

Have you experienced this same bug with .NET Framework?:

No

Problem description:
When edit the cell style properties for a DataGridView control in PropertyGrid, an error dialog pop-up.
5 0

More info:

  1. This issue occurs in all cell style properties: AlternatingRowsDefaultCellStyle, ColumnHeadersDefaultCellStyle, DefaultCellStyle, RowHeadersDefaultCellStyle and RowDefaultCellStyle.
  2. If target .NET Core project to 3.1, these proprties are grey and cannot edit.
    3 1

Expected behavior:

The CellStyle Builder dialog should be opened.
Framework

Minimal repro:

  1. Launch the attached project in VS and run it.
  2. Click the … edit button for AlternatingRowsDefaultCellStyle property in PropertyGrid.
    Core5.0-TestApp.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions