Winform程序中设置DataGridView的列标题背景色不起作用怎么办

来源:互联网 发布:java调用esb 服务方式 编辑:程序博客网 时间:2024/05/18 02:57

Winform程序中

设置DataGridView标题的背景色时

先将EnableHeadersVisualStyles属性设置为false 
然后再设置ColumnHeaderDefaultCellStyle属性时,新的ColumnHeaderDefaultCellStyle就起作用了
原创粉丝点击