GetCellDisplayRectangle
dataGridView1_Paint(object sender, PaintEventArgs e)
Rectangle cell_1 = dataGridView1.GetCellDisplayRectangle(column1, row1, false); Rectangle cell_2 = dataGridView1.GetCellDisplayRectangle(column2, row2, false); int x1 = cell_1.Right; int y1 = (cell_1.Top + cell_1.Bottom) / 2; int x2 = cell_2.Right; int y2 = (cell_2.Top + cell_2.Bottom) / 2;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)