Link to home
Start Free TrialLog in
Avatar of Pizpot
Pizpot

asked on

force paint whole datagridview?

Hi,

I have code in datagridview1_paint to draw from one cell to another. (from the cell you clicked last, to 0,0)

If I resize the columns, then it redraws the line, but it leaves old lines in the cells that do not get resized. Also, if I click a new cell, then it draws new lines, but the old ones are still visible. How to I force a refresh of the whole thing? I tried ...graphics.clear(white) and that is not the solution.
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

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