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));
        }

你可能感兴趣的:(datagridview)