Failed setting the color value for the SortGlyphColor item in the CellStyle Builder page of RowsDefaultCellStyle property for DataGridView control
- 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
### 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
Assessment
This issue has not been assessed yet.