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;