PoisonDataGridView Custom Theme Color change #222
-
|
Greeetings! I have set these parameters and changed the defeault columns and row header styles... What is the recommended way to make custom colors persist for poison theme? Should I be using a different approach, or is there a way to prevent the theme from overriding my settings? Thanks in advance for any guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi! Thanks for reporting this. You're right — This has been fixed. To use custom colors on poisonDataGridView1.UseCustomBackColor = true; // preserves your custom background colors
poisonDataGridView1.UseCustomForeColor = true; // preserves your custom foreground colorsOr set them via the Properties panel in the designer under the "Poison Appearance" category. Once these flags are set to The fix will be available in the next release. |
Beta Was this translation helpful? Give feedback.

Hi! Thanks for reporting this.
You're right —
PoisonDataGridViewhad a bug where theStyleGrid()method was unconditionally overwriting all color properties whenever the theme was applied (including duringPoisonStyleManagerinitialization at runtime). This means any custom colors set in the designer were being reset, regardless of theUseCustomBackColor/UseCustomForeColorflags.This has been fixed.
StyleGrid()now respects those properties, consistent with how other Poison controls (likePoisonButton) handle custom colors.To use custom colors on
PoisonDataGridView, set these properties: