The background color of DataGridView looks incorrect after Alt+Tab, Alt+Tab

Z

zlf

Hello,
I just implement a custom control that extends from DataGridView, every cell
has different background. I found a problem, for now it seems to be erasing
background incorrectly after selecting a cell, when switch to different
application(hit Alt+Tab) and then once more to back. The background of
selected cell will be consistently rendered to a color, rather than the
dynamically configured one. If I select another cell after switching, the
previously selected cell's background will be rendered to be correct color
then.

Thanks
 
Z

zlf

It occurs again:(, not so frequently but indeed occurs sometime. It occurs
when I resize some columns too.
Plz help me, thx

zlf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top