DataGridView边框颜色

private void dgvInfo_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.DrawRectangle(Pens.SteelBlue, new Rectangle(0, 0, this.dgvInfo.Width - 1, this.dgvInfo.Height - 1));
        }
原文地址:https://www.cnblogs.com/luoyaoquan/p/2106005.html