Link to home
Start Free TrialLog in
Avatar of Pizpot
Pizpot

asked on

draw line from datagridview cell to another celll

Let's say I have a datagridview with 4 cols and 100 rows. If I scroll down and then click on cell(89,3), how do I draw a line connecting the left edge of that cell to the right edge of cell cell(49,0)?

I'd also like it to update if I scroll around, resize the form, min/maximise etc.
ASKER CERTIFIED SOLUTION
Avatar of vb_jonas
vb_jonas
Flag of Sweden 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
Line 18 should be:
e.Graphics.DrawLine(p, lineFrom, lineTo)
Avatar of Pizpot
Pizpot

ASKER

I am trying that snippet thanks...