Hi cool77bin,
After doing some research, it is hard to set the hover colorof DataGridViewComboBoxCell directly.
And I have a suggestion you can refer to.
You can try to customize combobox and add it to datagridview, which has the same effect as DataGridViewComboBoxCell.
This thread may help you.
Then you can get windows system color.
In winforms, you can use System.Drawing.SystemColors.
More details you can refer to this thread.
Best Regards,
Daniel Zhang
Change the hover colour of DataGridViewComboBoxCell in winforms (Always shows blue color)
cool77bin
1
Reputation point
I have a datagridview which contains DataGridViewComboBoxCell, these cells are added to the grid dynamically through code.
When I hover through the cells it always shows blue color (hover color), I need to set the hover color based on application theme (need to set color other than blue), How it can be set?
1 answer
Sort by: Most helpful
-
Daniel Zhang-MSFT 9,621 Reputation points
2020-08-27T09:21:08.687+00:00