Drawing Arrows between Datagridview Cells
Hi Guys,
I am stuck with a problem here. I am trying to draw arrows between the cells on datagridview. The problem is, if I make graphics with:
VB.Net Code:
Dim g As Graphics = dgwTable.CreateGraphics
Then draw something with this graphics, my lines stay behind the cells. Is there any way to draw onto the cells?
Is there any way to draw arrows?
Thanks a lot...
Re: Drawing Arrows between Datagridview Cells
The problem is that the cells are drawn over the surface of your datagridview. This means that your arrow is drawn first and the cells are drawn over it. The only workaround that I see is to draw on some 'transparent' surface that you place over the datagridview or you can draw your arrow in the cells. Of course it will involve some very sophisticated algorithm of determining which cells are going to be affected and then draw a portion of your arrow in every cell so that it appears a whole line.
Re: Drawing Arrows between Datagridview Cells
Quote:
Originally Posted by
cicatrix
The problem is that the cells are drawn over the surface of your datagridview. This means that your arrow is drawn first and the cells are drawn over it. The only workaround that I see is to draw on some 'transparent' surface that you place over the datagridview or you can draw your arrow in the cells. Of course it will involve some very sophisticated algorithm of determining which cells are going to be affected and then draw a portion of your arrow in every cell so that it appears a whole line.
thanks a lot... I think I have to write my own table component or put labels around as arrows...