DevExpress GridView设置单元格网格线颜色|C/S框架网
DevExpress GridView设置单元格网格线颜色|C/S框架网
在VS设计器中设置DevExpress GridView单元格的网格线颜色参考下面的图片即可完成设置,但是在代码中设置网格线颜色,必须要给UseBackColor属性赋值True才有效果。
C# Code:
gridView.Appearance.VertLine.BackColor = Color.Black;
gridView.Appearance.HorzLine.BackColor = Color.Black;
gridView.Appearance.VertLine.Options.UseBackColor = true;
gridView.Appearance.HorzLine.Options.UseBackColor = true;
//来源:C/S框架网(www.csframework.com) QQ:23404761
gridView.Appearance.VertLine.BackColor = Color.Black;
gridView.Appearance.HorzLine.BackColor = Color.Black;
gridView.Appearance.VertLine.Options.UseBackColor = true;
gridView.Appearance.HorzLine.Options.UseBackColor = true;
//来源:C/S框架网(www.csframework.com) QQ:23404761
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网