Hi jimmy_yehtut
You can handle the CellEndEdit event of DataGridView to get the new value of an edited cell. After that you can handle the Paint event of PictureBox and use Graphics.DrawLine to draw the graphics onto the PictureBox like this.
Code Snippet
pictureBox1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Point p1 = new Point(�/span>// Decide on your entered value of DataGridViewCell
Point p2 = new Point(�/span>// Decide on your entered value of DataGridViewCell
g.DrawLine(new Pen(new SolidBrush(Color.Red)), p1, p2);
}
If you have any question, please tell me.
Sincerely,
Kira Qian |