如何更改Datagridview的边框颜色??

elaine19871104 2009-11-16 03:58:54
我想改变DataGridview的外框颜色????
...全文
912 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
言多必失 2011-10-08
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 h_w_king 的回复:]
private void dataGridView1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(Pens.Blue, new Rectangle(0, 0, this.dataGridView1.Width-1, this.dataGridView1.Height-1));
}
}
[/Quote]

就这个啊
junyao100 2011-07-18
  • 打赏
  • 举报
回复
顶5楼……
qqrto 2010-08-08
  • 打赏
  • 举报
回复
支持5楼
h_w_king 2009-11-19
  • 打赏
  • 举报
回复

private void dataGridView1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(Pens.Blue, new Rectangle(0, 0, this.dataGridView1.Width-1, this.dataGridView1.Height-1));
}
}
elaine19871104 2009-11-19
  • 打赏
  • 举报
回复
引用 2 楼 surlew 的回复:
C# code
dataGridView1.GridColor= Color.Blue;


我设置了 ,为什么没有显示效果呢???
elaine19871104 2009-11-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 surlew 的回复:]
C# code
dataGridView1.GridColor= Color.Blue;
[/Quote]
我设置了 ,为什么没有显示效果呢???
surlew 2009-11-16
  • 打赏
  • 举报
回复

dataGridView1.GridColor = Color.Blue;
lee_b 2009-11-16
  • 打赏
  • 举报
回复
borderstyle 设置边框样式的

111,125

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧