private void DrawVerticalGridLines(Graphics gr, int y) { int x = 0; foreach (TreeColumn c in Columns) { if (c.IsVisible) { x += c.Width; gr.DrawLine(SystemPens.InactiveBorder, x - 1, y, x - 1, gr.ClipBounds.Bottom); } } }