Link to home
Start Free TrialLog in
Avatar of ddepuemd
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?
Avatar of ddepuemd
ddepuemd

ASKER

Hey experts!  Doesn't anyone know how to fix this?

The first picture is a normal display, without this line in the cell painting method:

e.AdvancedBorderStyle.Bottom = DataGridViewAdvancedCellBorderStyle.InsetDouble

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
the second picture is only what happens to the display when another window is dragged over the grid.
ASKER CERTIFIED SOLUTION
Avatar of ddepuemd
ddepuemd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial