On startup, my DataGridView with dynamically created rows and columns looks fine.
The DGV is on a TabPage. When I switch to the other TabPage and back again, the DGV goes all to Dallas. It almost looks as if a new rendering of itself is being drawn on top of the old rendering, but a little bit off-centered.
I’ve got scream shots of both the “good grid” and the “bad grid” at:
Wholly cow!
Commenting out this code:
…solved the problem. That code was necessary when I was using a TableLayoutPanel, but obviously it causes problems when replacing a TLP with a DGV.