ddepuemd
asked on
datagridview degradation and form focus
I have a form with a large dgv on it that always degrades when something else on the screen is clicked. Does anyone know why? I have a function that refreshes the grid when another panel is shown and then returned to the panel with the grid which works fine, albeit a little screen flicker. Is there a way to know when the form is now the one with focus on the screen so that the refresh function can be called?
ASKER
the second picture is only what happens to the display when another window is dragged over the grid.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The first picture is a normal display, without this line in the cell painting method:
e.AdvancedBorderStyle.Bott
the second picture is with the line in the method. How do I fix this? The code is necessary in order to paint the red lines, which is essential. HELP!
good-display.jpg
bad-display.jpg