Skip to content
Discussion options

You must be logged in to vote
Admin verified this answer by Taiizor Mar 15, 2026

Hi! Thanks for reporting this.

You're right — PoisonDataGridView had a bug where the StyleGrid() method was unconditionally overwriting all color properties whenever the theme was applied (including during PoisonStyleManager initialization at runtime). This means any custom colors set in the designer were being reset, regardless of the UseCustomBackColor / UseCustomForeColor flags.

This has been fixed. StyleGrid() now respects those properties, consistent with how other Poison controls (like PoisonButton) handle custom colors.

To use custom colors on PoisonDataGridView, set these properties:

poisonDataGridView1.UseCustomBackColor = true;  // preserves your custom background colors
poisonD…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer verified by Admin Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested solved Problem solved
2 participants