该空间Pain事件中添加如下代码
private void DataGridCurrent_Paint(object sender, PaintEventArgs e)
{
DataGridView dataGridView = senderasDataGridView;
ControlPaint.DrawBorder(e.Graphics,dataGridView.ClientRectangle,Color.DeepSkyBlue,1,
ButtonBorderStyle.Solid,
Color.DeepSkyBlue,1,ButtonBorderStyle.Solid,Color.DeepSkyBlue, 1,ButtonBorderStyle.Solid,Color.DeepSkyBlue, 1,ButtonBorderStyle.Solid);
}