dotnet / dotnet/winforms

Failed setting the color value for the SortGlyphColor item in the CellStyle Builder page of RowsDefaultCellStyle property for DataGridView control

Open
#15,091 0 comments 0 reactions 1 assignee Claimed by @LeafShi1 View on GitHub
:boom: regression-preview untriaged
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET 11 11.0.100-rc.2.26463.103 build

### Did it work in .NET Framework?

No

### Did it work in any of the earlier releases of .NET Core or .NET 5+?

This is a new property which introduced by the PR https://github.com/dotnet/winforms/pull/14267

### Issue description

Failed setting the color for the SortGlyphColor item in the CellStyle Builder page of RowsDefaultCellStyle property for DataGridView Control, the issue can reproduce on AlternatingRowsDefaultCellStyle/ColumnHeadersDefaultCellStyle/DefaultCellStyle/RowHeadersDefaultCellStyle/RowsDefaultCellStyle properties

Image

Image

### Steps to reproduce

1. Create a .NET winforms project with a DataGridView control
2. Add a DataGridViewTextbox item for the dataGridView1
3. Open the CellStyle Builder page for the RowsDefaultCellStyle property of dataGridView1 control
4. Set the color for the SortGlyphColor item in the CellStyle Builder page
5. Build the project

**Results:**
The project failed with below error message
```
Severity Code Description Project File Line Suppression State Details
Error (active) CS1061 'DataGridViewCellStyle' does not contain a definition for 'SortGlyphColor' and no accessible extension method 'SortGlyphColor' accepting a first argument of type 'DataGridViewCellStyle' could be found (are you missing a using directive or an assembly reference?) WinFormsApp25 C:\Users\v-zhgl\source\repos\WinFormsApp25\WinFormsApp25\Form1.Designer.cs 42
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.