datagridview中行分隔符的颜色 [英] color of row divider in datagridview
本文介绍了datagridview中行分隔符的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
但是我想改变颜色分隔线,让我们说Color.Red,我该怎么做?我不想改变单元格的背景颜色。
解决方案
DataGridView.GridColor看起来它控制行分隔符颜色。
I have a winforms (c#) datagridview form where I can set the divider between rows with row.DividerHeight = 1
But I would like to change the color of the dividerline, to lets say Color.Red, how would I do that? I dont want to change the background color of the cell.
解决方案
DataGridView.GridColor Looks like it controls the row divider color as well.
这篇关于datagridview中行分隔符的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文