To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.161
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0
*** Please add details and screenshots as needed below. ***
Occasionally, when opening a project containing a datagridview, if the form has a property set for ForeColor, it will apply that ForeColor to the datagridview DefaultCellStyle, even if the DefaultCellStyle's ForeColor has already been set.
Specifically, my Form's ForeColor is set to White, and I set the DefaultCellStyle to Black.
When I opened my project, the DefaultCellStyle's ForeColor was then reset to White again.
This has happened on multiple projects multiple times, and it constantly breaks my app releases because of white text on a white DGV cell background.
DataGridView Forecolor resets
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: DataGridView Forecolor resets
Thanks for reporting this issue.
We are investigating this and will update you as soon as we have more information.
We are investigating this and will update you as soon as we have more information.
Re: DataGridView Forecolor resets
Unfortunately, this is issue within .NET itself. When you set the ForeColor of the Form, it overrides the default cell style of the grid.
To get around the issue, I recommend setting the color of the grid's default cell style within the form's Load event.
To get around the issue, I recommend setting the color of the grid's default cell style within the form's Load event.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.